export interface TokenExchangerConfig { /** ULS token endpoint URL (e.g. https://oauth.my.tomtom.com/token) */ tokenEndpoint: string; /** Client ID identifying this app to ULS */ clientId: string; /** Target audience for the exchanged token (e.g. https://account.cx.tomtom.com) */ audience: string; /** Scope requested for the exchanged token (e.g. authorize) */ scope: string; } /** * Exchanges a user's access token for one scoped to a different audience * (e.g. the account management API) via the ULS token exchange endpoint. * * Uses RFC 8693 Token Exchange: * - grant_type: urn:ietf:params:oauth:grant-type:token-exchange * - subject_token_type: urn:ietf:params:oauth:token-type:jwt * - requested_token_type: urn:ietf:params:oauth:token-type:access_token */ export declare class TokenExchanger { private readonly tokenEndpoint; private readonly clientId; private readonly audience; private readonly scope; constructor(config: TokenExchangerConfig); exchangeToken(bearerToken: string): Promise; } //# sourceMappingURL=tokenExchanger.d.ts.map