import { type AuthCreds } from "./headers.js"; import { type ChatGptConversationEvent } from "./sse.js"; export type TurnAuth = AuthCreds & { accessToken: string; }; export type ConversationTurnOpts = { auth: TurnAuth; model: string; prompt: string; thinkingEffort?: string; conversationId?: string; parentMessageId?: string; tools?: unknown[]; toolChoice?: unknown; useWrapperTool?: boolean; signal?: AbortSignal; /** Emitted for each parsed upstream event as it arrives (enables real streaming). */ onEvent?: (event: ChatGptConversationEvent) => void; /** When set, posts a tool-result continuation instead of a user message. */ toolResult?: { text: string; conversationId: string; parentMessageId: string; /** Upstream recipient that issued the call (container.exec, api_tool.call_tool, …). */ toolAuthorName?: string; }; }; export type ConversationTurnResult = { events: ChatGptConversationEvent[]; conversationId?: string; messageId?: string; responseHeaders: Headers; }; export declare function invalidateSentinel(accountId?: string): void; export declare function clearSentinelCache(): void; export declare function runConversationTurn(opts: ConversationTurnOpts): Promise; //# sourceMappingURL=client.d.ts.map