import * as ts from "typescript"; /** * A selector function that extracts matching nodes from a source file. */ export type SelectorFn = (sourceFile: ts.SourceFile) => ts.Node[]; /** * Recursively collect nodes matching a predicate. */ export declare function collectNodes(root: ts.Node, predicate: (node: ts.Node) => boolean): ts.Node[]; /** * Register a custom selector. */ export declare function registerSelector(name: string, fn: SelectorFn): void; /** * Resolve a selector name (or compound expression) to a SelectorFn. * * Compound selectors use `>` to scope: `"resource > property"` means * "find all `resource` nodes, then within each, find all `property` nodes". */ export declare function resolveSelector(name: string): SelectorFn; //# sourceMappingURL=selectors.d.ts.map