import type { ComponentData } from '../types.js'; /** Parse all component data from a Svelte component file */ export declare function parseComponent(filePath: string): Promise; /** Parse component data from source */ export declare function parseComponentSource(source: string): ComponentData; /** Reflow JSDoc description text: hard-wrapped lines rejoin into their * sentence, while blank lines and list markers (`-`, `*`, `1.`) keep a real * line break — so a multi-line description reads as written, not as wrapped. */ export declare function reflowJsdocText(text: string): string; /** * The component's own description, from Svelte's `` comment. * * This is the convention Svelte documents and editors already read on hover, * so it is where a component's description belongs — beside the code, written * once, rather than repeated in every `.sdoc` that previews it. * * Markdown is allowed inside it (the Svelte docs say so explicitly), so the * text comes back raw and the renderer decides. Only the first such comment * counts, and only the part after the `@component` line. */ export declare function extractComponentComment(source: string): string | null;