import type { Contract } from "@canvas-js/core/contract"; import type { ContractAction, ModelSchema } from "./types.js"; import type { Config } from "./Canvas.js"; import { Canvas as Core } from "./Canvas.js"; /** * A synchronously initialized proxy for the main Canvas * class that defers calls on `app.actions` and `app.db`. * Other calls will fail with an error until the object is initialized. * * This can be used in SSR applications that require an immediately * usable `Canvas` object, with `new Canvas({ ... })` */ export declare class CanvasSync = Contract & Record>> { initialized?: Promise>; ready?: boolean; app?: Core | undefined; actions: any; db: any; create: any; update: any; delete: any; constructor(config: Config, { disableSSR }?: { disableSSR?: boolean; }); } export declare const Canvas: (new (...args: ConstructorParameters) => Core) & { initialized: Promise>; };