import type Database from 'better-sqlite3'; import type { EntityType, RelationType, BootstrapResult, SchemaMeta } from './entity'; /** Schema YAML structure (simplified) */ interface SchemaDefinition { entity_types?: Array<{ name: string; description?: string; required_fields?: Record; }>; relation_types?: Array<{ name: string; from_types?: string[]; to_types?: string[]; cardinality?: string; inverse_of?: string; description?: string; }>; } /** * Bootstrap graph schema from a definition object. * Idempotent: existing types are skipped. */ export declare function bootstrapSchema(db: Database.Database, schema: SchemaDefinition, sourceFile?: string): BootstrapResult; /** * Get schema metadata (returns the most recent row). */ export declare function getSchemaMeta(db: Database.Database): SchemaMeta | undefined; /** * Check if schema has been bootstrapped. */ export declare function isSchemaBootstrapped(db: Database.Database): boolean; /** * Get all entity types. * builtin:3.0 (Sprint 31): Derives entity types from documents.type dynamically. * No entity_types table is read. */ export declare function getEntityTypes(db: Database.Database): EntityType[]; /** * Get all relation types. */ export declare function getRelationTypes(db: Database.Database): RelationType[]; export {}; //# sourceMappingURL=graph-schema.d.ts.map