//#region src/db.d.ts
interface MigrationStorage {
  schema: string;
  table: string;
  slug: string;
}
declare function getMigrationSlug(dir?: string): string;
declare function getMigrationStorage(slug?: string, options?: {
  isolated?: boolean;
}): MigrationStorage;
/**
 * Format a JavaScript string array as a PostgreSQL text array literal for use
 * with Drizzle's `sql` tag. Example return:
 *   `'{"h1","h2"}'::text[]`
 *
 * Usage: sql`WHERE col = ANY(${toSqlArray(values)})`
 *
 * Drizzle's default parameter binding does not handle array types correctly
 * with the pg driver (it emits `ANY(($1))` with a single string, which
 * Postgres rejects as a malformed array literal).
 */
declare function toSqlArray(arr: string[]): string;
declare function pluginMigrationSlug(key: string): string;
declare function getDatabaseUrlSecretName(slug: string): string;
declare function extractExpectedTables(migrations: {
  sql: string[];
}[]): string[];
//#endregion
export { MigrationStorage, extractExpectedTables, getDatabaseUrlSecretName, getMigrationSlug, getMigrationStorage, pluginMigrationSlug, toSqlArray };
//# sourceMappingURL=db.d.mts.map