import type { SvelteDocsConfig } from '@urbicon-ui/shared-types'; /** * Result from parsing a docs.svelte file */ export interface SvelteDocsParseResult { /** Configuration exported from the docs.svelte file */ docsConfig: SvelteDocsConfig; /** Custom sections parsed from template */ sections: []; /** Whether the file exists and was successfully parsed */ exists: boolean; /** Any parsing errors encountered */ errors: string[]; /** Warnings about the configuration */ warnings: string[]; } /** * Simplified parser for docs.svelte files * Focuses exclusively on extracting the exported docsConfig. * Section parsing has been removed intentionally to reduce complexity. */ export declare class SvelteDocsParser { /** * Parse a docs.svelte file for a component * @param componentName Name of the component * @param docsFilePath Optional path to the docs file (if not provided, returns defaults) */ parseDocsFile(componentName: string, docsFilePath?: string): Promise; /** * Extract `export const docsConfig` from the file's script block. * * Folds the object literal off the TypeScript AST — no code is executed. A * config that is present but not statically evaluable throws (with * file:line:column) rather than degrading to `{}`; the caller reports it via * `SvelteDocsParseResult.errors`. An *absent* export is not an error: the * component simply takes the documented defaults. */ private extractDocsConfig; /** * Validate docs configuration */ private validateConfig; } //# sourceMappingURL=SvelteDocsParser.d.ts.map