import type { Diagram } from "@visuallyjs/browser-ui"; import { ComponentRef } from "./surface-store"; /** * Key for the diagram context * @internal */ export declare const DIAGRAM_STORE_KEY: unique symbol; /** * Handle for a diagram - use `set` to set the diagram and `listen` to register a listener. * @internal */ export interface DiagramRef extends ComponentRef { } /** * Create a surface context, and set it on Svelte via `setContext`. * @internal */ export declare function internal_createDiagramContext(): DiagramRef; /** * Gets the current diagram context from Svelte, optionally creating it if it does not exist. The Diagram and the DiagramProvider both set `doNotCreate` to false; other components such as miniview/controls must set it to true. * DO NOT use as a user of the API. Use {@link useDiagram} instead * @param doNotCreate * @internal */ export declare function internal_getDiagramContext(doNotCreate: boolean): DiagramRef;