import type { ChangeView, InternalChangeTable } from "../change/schema-definition.js"; import { LixChangeSetElementSchema, LixChangeSetSchema } from "../change-set/schema-definition.js"; import { LixCommitSchema, LixCommitEdgeSchema } from "../commit/schema-definition.js"; import { LixVersionDescriptorSchema, type LixActiveVersion } from "../version/schema-definition.js"; import { type InternalSnapshotTable } from "../snapshot/schema.js"; import { LixStoredSchemaSchema } from "../stored-schema/schema-definition.js"; import type { FromLixSchemaDefinition, LixGenerated } from "../schema-definition/definition.js"; import { LixKeyValueSchema, type LixKeyValue } from "../key-value/schema-definition.js"; import type { StateView, StateByVersionView, StateWithTombstonesView } from "../state/index.js"; import type { StateHistoryView } from "../state-history/schema.js"; import { LixDirectoryDescriptorSchema } from "../filesystem/directory/schema-definition.js"; import { LixFileDescriptorSchema } from "../filesystem/file/schema-definition.js"; import type { EntityStateByVersionView, EntityStateHistoryView, EntityStateView } from "../engine/entity-views/types.js"; import { LixLogSchema } from "../log/schema-definition.js"; import { LixAccountSchema, LixActiveAccountSchema } from "../account/schema-definition.js"; import { LixChangeAuthorSchema } from "../change-author/schema-definition.js"; import { LixLabelSchema } from "../label/schema-definition.js"; import { LixEntityLabelSchema } from "../entity/label/schema-definition.js"; import { LixEntityConversationSchema } from "../entity/conversation/schema-definition.js"; import { LixConversationSchema, LixConversationMessageSchema, type LixConversationMessage } from "../conversation/schema-definition.js"; import { LixChangeProposalSchema } from "../change-proposal/schema-definition.js"; import type { EntityViews } from "../engine/entity-views/entity-view-builder.js"; import type { ToKysely } from "../engine/entity-views/types.js"; import type { InternalStateAllUntrackedTable } from "../state/untracked/schema.js"; import type { InternalFileDataCacheTable } from "../filesystem/file/cache/schema.js"; import type { InternalFileLixcolCacheTable } from "../filesystem/file/cache/lixcol-schema.js"; import type { InternalFilePathCacheTable } from "../filesystem/file/cache/path-cache-schema.js"; import type { InternalTransactionStateTable } from "../state/transaction/schema.js"; import type { InternalStateVTable } from "../state/vtable/vtable.js"; export declare const LixDatabaseSchemaJsonColumns: { readonly snapshot: readonly ["content"]; readonly change_set: readonly ["metadata"]; }; export type LixInternalDatabaseSchema = LixDatabaseSchema & { lix_internal_transaction_state: InternalTransactionStateTable; lix_internal_change: InternalChangeTable; lix_internal_snapshot: InternalSnapshotTable; lix_internal_state_all_untracked: InternalStateAllUntrackedTable; lix_internal_state_vtable: InternalStateVTable; lix_internal_file_data_cache: InternalFileDataCacheTable; lix_internal_file_lixcol_cache: InternalFileLixcolCacheTable; lix_internal_file_path_cache: InternalFilePathCacheTable; lix_internal_state_writer: InternalStateWriterTable; }; export type InternalStateWriterTable = { file_id: string; version_id: string; entity_id: string; schema_key: string; writer_key: string | null; }; type DirectoryDescriptorView = ToKysely & { path: LixGenerated; }>>; type DirectoryDescriptorByVersionView = ToKysely & { path: LixGenerated; }>>; type DirectoryDescriptorHistoryView = ToKysely & { path: LixGenerated; }>>; export type LixDatabaseSchema = { active_account: EntityViews["active_account"]; active_version: ToKysely; state: StateView; state_by_version: StateByVersionView; state_with_tombstones: StateWithTombstonesView; state_history: StateHistoryView; change: ChangeView; directory: DirectoryDescriptorView; directory_by_version: DirectoryDescriptorByVersionView; directory_history: DirectoryDescriptorHistoryView; } & EntityViews & EntityViews & EntityViews & EntityViews & EntityViews & EntityViews; directory_id: LixGenerated; name: LixGenerated; extension: LixGenerated; }> & EntityViews & EntityViews & EntityViews & EntityViews & EntityViews & EntityViews & EntityViews & EntityViews & EntityViews; working_commit_id: LixGenerated; }> & EntityViews & EntityViews; export {}; //# sourceMappingURL=schema.d.ts.map