/** * Staging Environment Credentials API Client * * Fetches WorkOS staging credentials (client_id, api_key) from the staging API. * Requires an access token with 'staging-environment:credentials:read' scope. */ export interface StagingCredentials { clientId: string; apiKey: string; } export declare class StagingApiError extends Error { readonly statusCode?: number | undefined; constructor(message: string, statusCode?: number | undefined); } /** * Fetch staging environment credentials from the WorkOS API. * * @param accessToken - Bearer token with staging-environment:credentials:read scope * @returns StagingCredentials containing clientId and apiKey * @throws StagingApiError on auth failure, permission denied, or other HTTP errors */ export declare function fetchStagingCredentials(accessToken: string): Promise;