/**
 * Database layer exports
 */

// Storage adapter (backend-agnostic interface)
export {
    type CanvasStorageAdapter,
    type CanvasNode,
    type CanvasEdge,
    type CanvasGraph,
    type CanvasChangeEvent,
    InMemoryStorageAdapter,
    storageAdapterAtom,
} from './adapter';

// Supabase adapter
export { SupabaseStorageAdapter } from './supabase-adapter';

// Provider
export {
    CanvasDbProvider,
    useStorageAdapter,
    type CanvasDbProviderProps,
} from './provider';

// Query functions (for direct Supabase access if needed)
export * from './queries';

// Hooks
export * from './hooks';
