export type ScenePayload = { elements: unknown[]; appState: Record; files: Record; }; export type DrawingPublication = | { enabled: false; } | { enabled: true; slug: string; }; export type PublicDrawing = { title: string; } & ScenePayload; export type DrawingMeta = { id: string; title: string; createdAt: string; updatedAt: string; revision: number; }; export type DrawingRecord = DrawingMeta & { scene: ScenePayload; }; export const DEFAULT_TITLE = "Untitled";