import type { ResourceCtx } from '../../../core/extend-resource.js'; import type { ResolvedAddOn } from '../../platform/add-on/types.js'; import type { DatabaseCredentialOptions } from './index.js'; export type CredentialConnectionInfo = { credName: string; database: string; host: string; password: string; port: number; url: string; user: string; }; export type GetDatabaseCredentialUrlResult = { addon: ResolvedAddOn; credentialConnectionInfo: CredentialConnectionInfo; }; /** * Looks up the active connection info for a Postgres database credential, * dispatching to the Advanced-tier or classic-tier endpoint based on the * resolved add-on's plan, and returns a ready-to-use connection URL. * * `credName` defaults to the owner credential on the Advanced tier, or the * `default` credential on the classic tier. */ export declare function getUrl(ctx: Pick, addonIdentity: string, credName?: string, options?: DatabaseCredentialOptions): Promise;