10 lines
423 B
TypeScript
Raw Normal View History

2025-09-05 14:59:21 +08:00
import { type ComputedRef } from 'vue';
type AcceptNode = (node: HTMLElement) => typeof NodeFilter.FILTER_ACCEPT | typeof NodeFilter.FILTER_SKIP | typeof NodeFilter.FILTER_REJECT;
export declare function useTreeWalker({ container, accept, walk, enabled, }: {
container: ComputedRef<HTMLElement | null>;
accept: AcceptNode;
walk(node: HTMLElement): void;
enabled?: ComputedRef<boolean>;
}): void;
export {};