import type { IOpenAiChatGptAuthCredentials, IOpenAiChatGptAuthOptions, IOpenAiChatGptCompleteDeviceCodeOptions, IOpenAiChatGptDeviceCode, IOpenAiChatGptDeviceCodePollOptions, IOpenAiChatGptTokenData, IOpenAiChatGptTokenInfo } from './smartai.interfaces.js'; export declare const OPENAI_CHATGPT_AUTH_ISSUER = "https://auth.openai.com"; export declare const OPENAI_CHATGPT_CLIENT_ID = "app_EMoamEEZ73f0CkXaXp7hrann"; export declare const OPENAI_CHATGPT_CODEX_BASE_URL = "https://chatgpt.com/backend-api/codex"; export declare const OPENAI_CHATGPT_DEFAULT_ORIGINATOR = "smartai"; export declare class OpenAiChatGptAuthError extends Error { status?: number; body?: string; constructor(message: string, options?: { status?: number; body?: string; }); } export interface IOpenAiChatGptAuthorizationCode { authorizationCode: string; codeChallenge: string; codeVerifier: string; } export declare function parseOpenAiChatGptTokenInfo(token: string): IOpenAiChatGptTokenInfo; export declare function requestOpenAiChatGptDeviceCode(options?: IOpenAiChatGptAuthOptions): Promise; export declare function pollOpenAiChatGptDeviceCode(deviceCode: IOpenAiChatGptDeviceCode, options?: IOpenAiChatGptDeviceCodePollOptions): Promise; export declare function exchangeOpenAiChatGptAuthorizationCode(authorizationCode: IOpenAiChatGptAuthorizationCode, options?: IOpenAiChatGptAuthOptions): Promise; export declare function ensureOpenAiChatGptWorkspaceAllowed(tokenData: IOpenAiChatGptTokenData, forcedChatGptWorkspaceId?: string): void; export declare function completeOpenAiChatGptDeviceCodeLogin(deviceCode: IOpenAiChatGptDeviceCode, options?: IOpenAiChatGptCompleteDeviceCodeOptions): Promise; export declare function refreshOpenAiChatGptTokenData(tokenData: IOpenAiChatGptTokenData, options?: IOpenAiChatGptAuthOptions): Promise; export declare function createOpenAiChatGptProviderSettings(credentials: IOpenAiChatGptAuthCredentials): { apiKey: string; baseURL: string; headers: Record; };