export interface CanvasFrame { ctx: CanvasRenderingContext2D; width: number; height: number; text_color: string; dark_mode: boolean; } export declare function canvas_text_color(canvas: Element | undefined, dark_mode: boolean): string; export declare function create_canvas_surface(inputs: { canvas: () => HTMLCanvasElement | undefined; overlay_canvas?: () => HTMLCanvasElement | undefined; height?: () => number | undefined; draw: (frame: CanvasFrame) => void; draw_overlay?: (frame: CanvasFrame) => void; repaint_deps: () => unknown; }): { readonly dims: { width: number; height: number; }; readonly text_color: string; schedule: (redraw_base?: boolean) => void; };