import { AuthError } from '../errors.js'; export declare const DEFAULT_AUTH_PROFILE = "default"; export declare const DEFAULT_CLIENT_METADATA_URL = "https://apify.github.io/mcpc/client-metadata.json"; export declare const MCPC_OAUTH_CALLBACK_PORTS: readonly number[]; export declare const MCPC_OAUTH_CALLBACK_HOSTS: readonly string[]; export interface OAuthTokenResponse { access_token: string; token_type: string; expires_in?: number; refresh_token?: string; scope?: string; } export interface AuthServerMetadata { token_endpoint?: string; token_endpoint_auth_methods_supported?: string[]; [key: string]: unknown; } export declare function getOAuthServerUrl(urlString: string): string; export declare function discoverAuthServerMetadata(serverUrl: string): Promise; export declare function discoverAuthServerViaProtectedResource(serverUrl: string): Promise; export declare function discoverTokenEndpoint(serverUrl: string): Promise; export declare function refreshAccessToken(tokenEndpoint: string, refreshToken: string, clientId: string): Promise; export declare function discoverAndRefreshToken(serverUrl: string, refreshToken: string, clientId: string): Promise; export declare function createReauthError(serverUrl: string, profileName: string, message: string): AuthError; export declare function validateClientMetadataUrl(url: string): void; //# sourceMappingURL=oauth-utils.d.ts.map