/** * Meta object as `exportPageBody` builds it (SPEC §4). Kept byte-for-byte * compatible so files produced here match `exportPageBody`'s output exactly. */ export interface PageMeta { version: 1; pageId: string; slugId: string; title: string; spaceId: string; parentPageId: string | null; } /** * Produce the self-contained `.md` file text for a page from its raw * ProseMirror `content` + identity meta, in the verified fixpoint form. * * md1 = convertProseMirrorToMarkdown(content) * doc2 = markdownToProseMirror(md1) // one import... * stableBody = convertProseMirrorToMarkdown(doc2) // ...and re-export * file = serializeDocmostMarkdownBody(meta, stableBody) * * The single export->import->export pass is the verified fixpoint (SPEC §11): * idempotent for already-stable content, and the convergence point for the * known converter asymmetries. */ export declare function stabilizePageFile(content: unknown, meta: PageMeta): Promise;