import { TLShapeId } from '@tldraw/tldraw';

export type ShapeState = {
    parentId: TLShapeId | null;
    isPageChild: boolean;
    hasChildren: boolean | null;
    bindings: Record<string, unknown> | null;
};

export type NodeData = {
    title: string;
    w: number;
    h: number;
    state: ShapeState | null;
    headerColor: string;
    backgroundColor: string;
    isLocked: boolean;
    __primarylabel__: string;
    uuid_string: string;
    node_storage_path: string;
    [key: string]: string | number | boolean | null | ShapeState | Record<string, unknown> | undefined;
} 