/** What can be read from a booting live document without reaching into its driver. */ export type LiveBootDocumentState = { iframe: false; } | { iframe: true; readyState: DocumentReadyState | null; presented: boolean; }; /** * A live document's boot stage as a share of the boot once its frame exists: * the document starts parsing, finishes parsing, finishes loading, and is shown. * After loading the replay runs; it ends at the last share below 100, which * only the shown document reaches. */ export declare function liveBootStageProgress(state: LiveBootDocumentState): number | null; export declare function clampProgress(value: number | null | undefined): number | null; /** Share of the start-up done once the editor's scripts run: the page's module download is behind it. */ export declare const EDITOR_MODULES_DONE = 80; /** * Start-up progress for a stage the editor reached. The module download fills * the first `EDITOR_MODULES_DONE` percent; each later stage only moves the bar * forward from wherever the page's loading screen left it. */ export declare function editorStartupProgress(stage: 'catalog' | 'workspace', bootValue?: number): number;