import type { IOpenAiChatGptAuthOptions, IOpenAiChatGptTokenData } from '../dist_ts/smartai.interfaces.js'; export type TOpenAiChatGptAuthSource = 'smartai' | 'opencode' | 'codex'; export type TOpenAiChatGptAuthFileFormat = TOpenAiChatGptAuthSource | 'auto'; export interface IOpenAiChatGptAuthSourceConfig { source: TOpenAiChatGptAuthSource; filePath?: string; format?: TOpenAiChatGptAuthFileFormat; writeBack?: boolean; } export interface IOpenAiChatGptAuthSourceInspection { source: TOpenAiChatGptAuthSource; filePath: string; exists: boolean; usable: boolean; expired?: boolean; accountId?: string; email?: string; plan?: string; expiresAt?: string; error?: string; } export interface IInspectOpenAiChatGptAuthSourcesOptions { sources?: Array; homeDir?: string; now?: Date; } export interface IResolveOpenAiChatGptAuthOptions extends IInspectOpenAiChatGptAuthSourcesOptions { refresh?: 'ifNeeded' | false; writeBack?: Partial>; authOptions?: IOpenAiChatGptAuthOptions; } export interface IResolvedOpenAiChatGptAuth { source: TOpenAiChatGptAuthSource; filePath: string; tokenData: IOpenAiChatGptTokenData; refreshed: boolean; } export declare const getDefaultOpenAiChatGptAuthPath: (source: TOpenAiChatGptAuthSource, homeDir?: string) => string; export declare const normalizeOpenAiChatGptAuth: (input: unknown, format?: TOpenAiChatGptAuthFileFormat) => IOpenAiChatGptTokenData | undefined; export declare const readOpenAiChatGptAuthFile: (filePath: string, format?: TOpenAiChatGptAuthFileFormat) => Promise; export declare const inspectOpenAiChatGptAuthSources: (options?: IInspectOpenAiChatGptAuthSourcesOptions) => Promise; export declare const resolveOpenAiChatGptAuth: (options?: IResolveOpenAiChatGptAuthOptions) => Promise; export declare const writeOpenAiChatGptAuthFile: (filePath: string, tokenData: IOpenAiChatGptTokenData, format?: TOpenAiChatGptAuthFileFormat) => Promise;