import { b as SQLiteSchemaInternal, D as DrizzleObjects, S as Snapshot } from '../index.web-Bjl8wnx8.cjs'; export { d as drizzleObjectsToSnapshot, s as schemaToDrizzleObjects, a as schemaToSnapshot } from '../index.web-Bjl8wnx8.cjs'; import { P as PartialConfig } from '../loader.node-Bo9Dqnt1.cjs'; import { D as DrizzleSchema, C as Casing } from '../global-v_LCR4XD.cjs'; import 'drizzle-orm'; import 'drizzle-orm/sqlite-core'; import '../symbols-CdI5QtS4.cjs'; import 'drizzle-orm/relations'; import 'zod'; type SQLiteDB = { query: (sql: string, params?: any[]) => Promise; }; /** * Import the Drizzle schema from a PostgreSQL database. * @param db - The database to import from. */ declare const importFromDatabase: (db: SQLiteDB) => Promise; /** * Convert the schema SQL dump to a Drizzle snapshot * * **It requires `@libsql/client-wasm` to be installed** * * @param sqlDump - SQL dump * @returns Drizzle snapshot */ declare function sqlToSnapshot(sqlDump: string): Promise<{ dialect: "sqlite"; projectId: string; version: "6"; tables: Record; indexes: Record; foreignKeys: Record; compositePrimaryKeys: Record; uniqueConstraints: Record; checkConstraints: Record; relations: { type: "many" | "one"; fieldName: string; relationName: string; referencedTableName: string; }[]; description?: string | undefined; }>; enums: {}; views: Record; isExisting: boolean; description?: string | undefined; definition?: string | undefined; }>; _meta: { columns: Record; tables: Record; }; internal?: { indexes?: Record; } | undefined> | undefined; } | undefined; }>; /** * Convert Drizzle objects to SQL * @param drizzleObjects - Drizzle objects * @param config - Drizzle config * @returns SQL */ declare function drizzleObjectsToSql(drizzleObjects: DrizzleObjects, config?: PartialConfig): string; /** * Convert snapshot to SQL statements * @param snapshot - Snapshot * @returns SQL statements */ declare function snapshotToSqlStatements(snapshot: Snapshot): string[]; /** * Convert snapshot to SQL * @param snapshot - Snapshot * @returns SQL */ declare function snapshotToSql(snapshot: Snapshot): string; /** * Convert schema to SQL statements * @param schema - Drizzle schema * @param config - Drizzle config * @returns SQL statements */ declare function schemaToSqlStatements(schema: DrizzleSchema, config?: PartialConfig): string[]; /** * Convert schema to SQL * @param schema - Drizzle schema * @param config - Drizzle config * @returns SQL */ declare function schemaToSql(schema: DrizzleSchema, config?: PartialConfig): string; /** * Convert snapshot to TypeScript * @param snapshot - Snapshot * @param casing - Casing * @returns TypeScript */ declare function snapshotToTypeScript(snapshot: Snapshot, casing: Casing): { file: string; imports: string; decalrations: string; schemaEntry: string; }; /** * Convert the schema SQL dump to a Drizzle TypeScript file * * **It requires `@libsql/client-wasm` to be installed** * * @param sqlDump - The SQL dump * @returns The TypeScript file */ declare function sqlToTypescript(sqlDump: string): Promise; export { DrizzleObjects, Snapshot, drizzleObjectsToSql, importFromDatabase, schemaToSql, schemaToSqlStatements, snapshotToSql, snapshotToSqlStatements, snapshotToTypeScript, sqlToSnapshot, sqlToTypescript };