import type { HttpClient } from '../http.js'; import type { ExchangeCredentialParams, ExchangeCredentialReferenceParams, ExchangeCredentialReferenceResponse, ExchangeCredentialResponse, ListVaultCredentialsParams, ListVaultCredentialsResponse, StoreCredentialParams, StoreCredentialResponse, VaultCredential } from '../types.js'; export declare class VaultClient { #private; constructor(http: HttpClient, baseUrl: string); /** Store an encrypted credential in the vault (upserts on principal+service). */ store(params: StoreCredentialParams): Promise; /** List credential metadata (no raw tokens). */ list(params?: ListVaultCredentialsParams): Promise; /** Get credential metadata by ID (no raw token). */ get(credentialId: string): Promise; /** Delete a credential from the vault. */ delete(credentialId: string): Promise; /** * Exchange a grant token for an upstream credential. * Uses the grant token (not the API key) as the Bearer token. */ exchange(grantToken: string, params: ExchangeCredentialParams): Promise; /** * Exchange a grant token for a credential reference instead of the credential. * The relying party (for example the gateway with `credentialReference: on`) * resolves the reference and injects the credential upstream; this process * never holds the secret. Needs `VAULT_CREDENTIAL_REFERENCES_ENABLED` on the * auth service. */ exchangeReference(grantToken: string, params: ExchangeCredentialReferenceParams): Promise; } //# sourceMappingURL=vault.d.ts.map