import { AuthError } from '../errors.js';
export declare const DEFAULT_AUTH_PROFILE = "default";
export interface OAuthTokenResponse {
    access_token: string;
    token_type: string;
    expires_in?: number;
    refresh_token?: string;
    scope?: string;
}
export declare function discoverTokenEndpoint(serverUrl: string): Promise<string | undefined>;
export declare function refreshAccessToken(tokenEndpoint: string, refreshToken: string, clientId: string): Promise<OAuthTokenResponse>;
export declare function discoverAndRefreshToken(serverUrl: string, refreshToken: string, clientId: string): Promise<OAuthTokenResponse>;
export declare function createReauthError(serverUrl: string, profileName: string, message: string): AuthError;
//# sourceMappingURL=oauth-utils.d.ts.map