import type { ConnectionDetails } from "../client/types.gen.js"; import { type NeonResult } from "./result.js"; /** * Pick a connection string from a create response's `connection_uris`. * * Neon returns the **direct** URI; the pooled URI is the same string with the host * swapped for the `-pooler` host (`connection_parameters.pooler_host`), so we derive it * without an extra request. Returns `undefined` when the response carries no connection * URI (e.g. a branch created from a parent with multiple roles/databases). */ export declare function pickConnectionString(uris: ConnectionDetails[] | undefined, pooled: boolean): string | undefined; /** * Attach a derived connection string to a create result, returning a * {@link NeonClientError} when the response carries no connection URI. */ export declare function withConnectionString(result: NeonResult, uris: (data: D) => ConnectionDetails[] | undefined, build: (data: D, connectionString: string) => T, pooled: boolean): NeonResult; //# sourceMappingURL=connection.d.ts.map