import { type AxiosInstance } from 'axios'; export interface ApiKeyExchangeDeps { createClient: (accessToken: string) => AxiosInstance; hostname: () => string; sleep: (ms: number) => Promise; } /** * Trades an Auth0 access token for a long-lived Checkly API key, registering * the user with Checkly first when the Auth0 identity is not known yet * (that is what a fresh sign-up looks like from the CLI's point of view). */ export declare function exchangeAccessTokenForApiKey(accessToken: string, deps?: Partial): Promise<{ key: string; }>; export interface Credentials { /** Display name from the OpenID ID token. */ name: string; /** Long-lived Checkly API key. */ key: string; } export declare function credentialsFromTokens(tokens: { accessToken: string; idToken: string; }, deps?: Partial): Promise;