UNPKG

eve

Version:

Filesystem-first framework for durable backend AI agents that run anywhere.

25 lines (24 loc) • 943 B
import type { ChatGptCredentials, ChatGptRefreshCredentials } from "./oauth.js"; export declare class ChatGptInvalidStoredSessionError extends Error { constructor(); } export interface ChatGptCredentialStore { read(): Promise<ChatGptRefreshCredentials | ChatGptCredentials | undefined>; update(callback: (current: ChatGptRefreshCredentials | ChatGptCredentials | undefined) => Promise<ChatGptCredentials>, options?: { replace?: boolean; }): Promise<ChatGptCredentials>; } interface SecretStore { get(input: { service: string; name: string; }): Promise<string | null>; set(input: { service: string; name: string; value: string; }): Promise<void>; } export declare function createChatGptCredentialStore(path?: string, secretStore?: SecretStore): ChatGptCredentialStore; export declare function getDefaultChatGptCredentialStore(): ChatGptCredentialStore; export {};