/** * Database migrations for LibSQL. */ import type { Client, Transaction } from "@libsql/client"; import type { Table, Column } from "@kernl-sdk/storage"; /** * Migration context with helpers. */ export interface MigrationContext { client: Client | Transaction; createTable: (table: Table>) => Promise; } export interface Migration { id: string; up: (ctx: MigrationContext) => Promise; } /** * List of all migrations in order. */ export declare const MIGRATIONS: Migration[]; /** * Minimum schema version required by this version of @kernl/libsql. */ export declare const REQUIRED_SCHEMA_VERSION = "0001_initial"; /** * Create a table from its definition. * * This function handles the conversion from the generic table definition * to SQLite-compatible DDL. */ export declare function createTable(client: Client | Transaction, table: Table>): Promise; //# sourceMappingURL=migrations.d.ts.map