import { type ChatGptCredentials, type ChatGptRefreshCredentials } from "./oauth.js"; import { type ChatGptToken, type ChatGptTokenResolutionInput } from "./token.js"; export declare class ChatGptInvalidStoredSessionError extends Error { constructor(); } export interface ChatGptCredentialStore { read(): Promise; resolveToken(input: ChatGptTokenResolutionInput & { readonly fetch?: typeof fetch; }): Promise; update(callback: (current: ChatGptRefreshCredentials | ChatGptCredentials | undefined) => Promise, options?: { replace?: boolean; }): Promise; } interface SecretStore { get(input: { service: string; name: string; }): Promise; set(input: { service: string; name: string; value: string; }): Promise; } export declare function createChatGptCredentialStore(path?: string, secretStore?: SecretStore): ChatGptCredentialStore; export declare function getDefaultChatGptCredentialStore(): ChatGptCredentialStore; export {};