import { RequestId } from '../../networking/common/fetch'; import { ChatCompletion } from '../../networking/common/openai'; export declare enum FetchResponseKind { Success = "success", Failed = "failed", Canceled = "canceled" } export interface ChatResults { type: FetchResponseKind.Success; chatCompletions: AsyncIterable; } export interface ChatRequestFailed { type: FetchResponseKind.Failed; modelRequestId: RequestId | undefined; failKind: ChatFailKind; reason: string; data?: Record; } export interface ChatRequestCanceled { type: FetchResponseKind.Canceled; reason: string; } export declare enum ChatFailKind { OffTopic = "offTopic", TokenExpiredOrInvalid = "tokenExpiredOrInvalid", ServerCanceled = "serverCanceled", ClientNotSupported = "clientNotSupported", RateLimited = "rateLimited", QuotaExceeded = "quotaExceeded", ExtensionBlocked = "extensionBlocked", ServerError = "serverError", ContentFilter = "contentFilter", AgentUnauthorized = "unauthorized", AgentFailedDependency = "failedDependency", ValidationFailed = "validationFailed", InvalidPreviousResponseId = "invalidPreviousResponseId", NotFound = "notFound", Unknown = "unknown" } //# sourceMappingURL=fetch.d.ts.map