import { Kysely } from "kysely"; export type Dialect = "sqlite" | "postgres" | "d1"; export interface KyselyHandle { db: Kysely>; dialect: Dialect; /** URL with credentials redacted, safe for display. */ displayUrl: string; /** Idempotent — safe to call multiple times. */ close: () => Promise; } /** * Infer dialect from URL scheme. Throws if the scheme isn't recognized. */ export declare function inferDialect(url: string): Dialect; /** * Strip credentials from a URL for display. Returns unchanged if no userinfo. */ export declare function redactUrl(url: string): string; /** * Construct a Kysely instance from a URL. * * For sqlite/libsql, requires `@libsql/kysely-libsql` peer dep. * For postgres, requires `pg` peer dep. * * Surfaces an install hint if the peer dep is missing. */ export declare function buildKyselyFromUrl(url: string, dialectOverride?: Dialect): Promise; //# sourceMappingURL=kysely.d.ts.map