export type PrefigureModule = typeof import("@doenet/prefigure");
export type PrefigureBuildResult = {
    svg: string;
    annotationsXml: string;
};
export declare function warmupPrefigureInBackground(): void;
export declare function currentPrefigureDebounceMs(): 1000 | 40;
export declare function isPrefigureRuntimeReady(): boolean;
/**
 * Returns true if `error` is an AbortError regardless of whether it came from
 * a DOMException, from the plain-Error fallback in {@link createAbortError},
 * or from environment-specific abort object shapes.
 */
export declare function isAbortError(error: unknown): boolean;
/**
 * Build diagram content via whichever backend is currently available.
 * Prefers local WASM when warm; otherwise uses the build service.
 */
export declare function buildPrefigureDiagram(diagramXML: string, signal: AbortSignal): Promise<PrefigureBuildResult>;
//# sourceMappingURL=prefigureRuntime.d.ts.map