import { McpAuthContext, ActionParams, ActionResponse } from './types.js'; /** * Interface for token management result */ export interface TokenResult { accessToken: string; refreshToken?: string; deploymentId: string; } /** * Interface for action API call result */ export interface ActionCallResult { success: boolean; response?: ActionResponse; error?: string; } /** * Helper function to get access and refresh tokens from auth context * Falls back to deployment ID if tokens are not available */ export declare function getTokensFromContext(service: string): TokenResult | { deploymentId: string; }; /** * Helper function to refresh tokens if they are expired */ export declare function refreshTokensIfNeeded(service: string, accessToken: string, refreshToken: string, context: McpAuthContext): Promise<{ accessToken: string; refreshToken: string; }>; /** * Helper function to call action API with token management * Automatically handles token refresh if needed */ export declare function callActionAPIWithTokenManagement(service: string, params: ActionParams, retry?: boolean): Promise; //# sourceMappingURL=token-manager.d.ts.map