import type { ExcalidrawElement, NonDeletedExcalidrawElement } from "@excalidraw/element/types"; import type Scene from "@excalidraw/element/Scene"; import type { AppState } from "../types"; export declare class Renderer { private scene; constructor(scene: Scene); getRenderableElements: ((opts: { zoom: AppState["zoom"]; offsetLeft: AppState["offsetLeft"]; offsetTop: AppState["offsetTop"]; scrollX: AppState["scrollX"]; scrollY: AppState["scrollY"]; height: AppState["height"]; width: AppState["width"]; editingTextElement: AppState["editingTextElement"]; /** note: first render of newElement will always bust the cache * (we'd have to prefilter elements outside of this function) */ newElementId: ExcalidrawElement["id"] | undefined; pendingImageElementId: AppState["pendingImageElementId"]; sceneNonce: ReturnType["getSceneNonce"]>; }) => { elementsMap: Map & import("../../common/src/utility-types").MakeBrand<"NonDeletedElementsMap"> & import("../../common/src/utility-types").MakeBrand<"RenderableElementsMap">; visibleElements: readonly NonDeletedExcalidrawElement[]; }) & { clear: () => void; }; destroy(): void; }