import type { OSTTree } from '../types/ost.js'; export declare function parseMarkdownToTree(markdown: string): OSTTree; export declare function serializeTreeToMarkdown(tree: OSTTree, name?: string): string; export declare function createDefaultMarkdown(): string; /** * Share-link helpers * * Encodes markdown into a URL-safe fragment string. * We use base64url over UTF-8. (No compression; keeps deps at zero.) * * Typical use: `${location.pathname}#${encodeMarkdownToUrlFragment(markdown, name)}` */ export type ShareSettings = { layoutDirection?: 'vertical' | 'horizontal'; experimentLayout?: 'horizontal' | 'vertical'; viewDensity?: 'full' | 'compact'; }; export declare function encodeMarkdownToUrlFragment(markdown: string, name?: string, settings?: ShareSettings, collapsedIds?: string[]): string; /** * Decodes a URL fragment produced by `encodeMarkdownToUrlFragment`. * Returns `null` when decoding fails. */ export declare function decodeMarkdownFromUrlFragment(fragment: string): { markdown: string; name?: string; settings?: ShareSettings; collapsedIds?: string[]; } | null; //# sourceMappingURL=markdownOST.d.ts.map