/** * Shared Svelte-AST plumbing for the usage walker and the hardcoded-string lint: * the lazily-imported `parse`, a permissive `unknown`-based node accessor set, and * one iterative cycle-safe DFS. Kept dependency-light — `svelte/compiler` loads * only when a `.svelte` source is actually scanned. */ type SvelteParse = typeof import('svelte/compiler')['parse']; export declare function loadParse(): Promise; export interface AstNode { type: string; start?: number; [key: string]: unknown; } export declare const asNode: (value: unknown) => AstNode | undefined; export declare const asNodes: (value: unknown) => AstNode[]; export declare const asString: (value: unknown) => string | undefined; /** A TemplateElement's text. `.value` is a plain `{ raw, cooked }` (no `.type`). */ export declare const cookedOf: (quasi: AstNode | undefined) => string | undefined; /** Iterative DFS over the whole AST; skips non-structural keys and guards cycles. */ export declare function walkAst(root: unknown, visit: (node: AstNode) => void): void; export {};