export interface DatabaseCredentials {
    username: string;
    password: string;
    host: string;
    port: number;
    database: string;
}
export interface CredentialLookupOptions {
    app?: string;
}
export declare function getDatabaseUrl(tenant: string, stage: string, options?: CredentialLookupOptions): Promise<string>;
export declare function getDbCredentials(tenant: string, stage: string, _platformEnv: string, rdsHost: string, rdsPort: number, options?: CredentialLookupOptions): Promise<DatabaseCredentials>;
export interface DatabaseUrlRewriteOptions {
    endpoint?: string;
    sslMode?: string;
}
export declare function rewriteDatabaseUrl(url: string, options: DatabaseUrlRewriteOptions): string;
export declare function buildDatabaseUrl(creds: DatabaseCredentials, options?: DatabaseUrlRewriteOptions): string;
export declare function readSstOutputs(): Promise<{
    databaseUrl?: string;
    databaseName?: string;
    secretArn?: string;
} | null>;
