import type { DatabaseProxyOptions } from './database-proxy-options.js'; export declare const DEFAULT_LOCAL_PROXY_PORT = 5433; /** Declared here rather than imported: the Hosting schema types are private. */ export interface DatabaseAccessSession { databaseAccessSessionId: string; username: string; password: string; databaseName: string; expiresAt: string; databaseProxyUrl: string; } export declare const minutesUntil: (expiresAt: string, now?: number) => number; /** * Hosting may grant less than was asked for. The minute of tolerance absorbs * the round trip. */ export declare const formatClampedTtlWarning: (requestedMinutes: number | undefined, expiresAt: string, now?: number) => string | undefined; export declare const WARN_BEFORE_EXPIRY_MS: number; /** Undefined when the session is too short for the warning to precede it. */ export declare const toExpiryWarningDelay: (expiresAt: string, now?: number) => number | undefined; export declare const toConnectionJson: (session: DatabaseAccessSession, port: number) => Record; export declare const formatConnectionDetails: (session: DatabaseAccessSession, port: number, now?: number) => string; export declare const proxyDatabase: (args: Required> & DatabaseProxyOptions) => Promise; /** * Validate arguments for proxying a direct database connection. */ export declare const validateDatabaseProxyArgs: (args: DatabaseProxyOptions) => [DatabaseProxyOptions, string[]];