import * as ts from 'typescript'; /** * Raised when the `docsConfig` export cannot be folded into a static value. * Carries the position in the *original* .svelte file (see `maskToScriptBodies`). */ export declare class StaticDocsConfigError extends Error { readonly file: string; readonly line: number; readonly column: number; constructor(message: string, file: string, line: number, column: number); } /** * Fold a TypeScript expression into the plain value it denotes. * Accepts only JSON-shaped literals; throws `StaticDocsConfigError` otherwise. */ export declare function foldStaticExpression(node: ts.Expression, sourceFile: ts.SourceFile, file: string): unknown; /** * Parse `export const docsConfig = { … }` out of a docs.svelte source. * * @param content Raw .svelte file contents. * @param file Path used in error messages. * @returns The folded config, or `null` when the file exports no `docsConfig`. * @throws {StaticDocsConfigError} when the export exists but is not a static object literal. */ export declare function parseDocsConfigFromSvelte(content: string, file: string): Record | null; //# sourceMappingURL=static-docs-config.d.ts.map