export declare const NOTEBOOK_FORMAT_VERSION = 2; /** * Return the declared notebook format version, or `0` if absent. Missing * headers are treated as v0 and upgraded on next write (see committed * trade-off #3 in the v0.12 plan: silent forward-upgrade, no rejection). */ export declare function readNotebookFormatVersion(source: string): number; export interface CanonicalizeNotebookOptions { /** Override the emitted notebook format version. Defaults to NOTEBOOK_FORMAT_VERSION. */ version?: number; } /** * Produce the canonical on-disk JSON representation of a `.dqlnb` source. * Always emits `dqlnbVersion` as the first key, sorts object keys, and * trails with a single newline. * * Throws if the source is not valid JSON — callers should catch and fall * back to their legacy path during migration. */ export declare function canonicalizeNotebook(source: string, options?: CanonicalizeNotebookOptions): string; export declare function isNotebookCanonical(source: string): boolean; //# sourceMappingURL=notebook.d.ts.map