import { BoardScene } from './types.js'; declare const PAYLOAD_MIME = "application/vnd.moraya-board+json"; /** scene → base64(deflate(JSON)) */ declare function encodeScenePayload(scene: BoardScene): string; /** Inverse of {@link encodeScenePayload}. Throws on malformed input. */ declare function decodeScenePayload(payload: string): BoardScene; /** The block embedded into an exported `.mboard.svg`. */ declare function sceneMetadataBlock(scene: BoardScene): string; /** * Recover the scene from `.mboard.svg` text. Returns null when the file has * no payload (e.g. metadata stripped by an SVG optimizer) or the payload is * corrupt — callers show the "view-only, scene data lost" fallback. */ declare function extractSceneFromSvg(svgText: string): BoardScene | null; export { PAYLOAD_MIME, decodeScenePayload, encodeScenePayload, extractSceneFromSvg, sceneMetadataBlock };