/**
 * Drop `databaseUrl`'s database, via the admin (`/postgres`) database on the same server.
 * Throws if the drop could not be carried out.
 */
export declare function dropPGDatabase(databaseUrl: string, logger: {
    warn: (msg: string) => void;
}): Promise<void>;
/**
 * Create `databaseUrl`'s database if it does not already exist, via the admin (`/postgres`)
 * database on the same server. Best-effort: a database we cannot provision may still be one
 * we can connect to and use, so connection and creation failures are logged rather than thrown.
 * A URL carrying no database name is a caller error and does throw.
 */
export declare function ensurePGDatabase(databaseUrl: string, logger: {
    info: (msg: string) => void;
    warn: (msg: string) => void;
}): Promise<void>;
export declare function deriveDatabaseUrl(urlStr: string, otherDbName: string): string;
export declare function getDatabaseNameFromUrl(urlStr: string): string;
export declare function maskDatabaseUrl(urlStr: string): string;
//# sourceMappingURL=database_utils.d.ts.map