import type { RenderableTreeNode } from "@markdoc/markdoc"; /** * Traverses the Markdoc RenderableTreeNode AST to find all Svelte component names * that are actively used. It identifies components by their name starting with an * uppercase letter, as per convention, assuming Markdoc.transform has already * resolved these names from the schema's 'render' attributes. * * @param node - The RenderableTreeNode to traverse. * @returns A Set of unique Svelte component names used in the tree. */ export declare const extractUsedSvelteComponents: (node: RenderableTreeNode | null | undefined) => Set; /** * Generates Svelte import statements for a given set of Svelte component names. * * @param usedSvelteComponentNames - A Set of Svelte component names that need import statements. * @param componentDirPath - The directory path where Svelte components are located. * This can be any path format that Svelte/SvelteKit supports. * @returns A string containing all generated Svelte import statements. */ export declare const getComponentImports: (usedSvelteComponentNames: Set, componentDirPath: string) => string;