import type { AnyRequest, BaseTrace, IntentRequest, IntentRequestPayload } from '@voiceflow/dtos-interact'; import { TraceType } from '@voiceflow/dtos-interact'; type FetchFn = (...parameters: any[]) => Promise; export interface RuntimeOptions { url: string; verify: V; /** * A ponyfill to use for `fetch()`. * Defaults to the global `fetch()`. */ fetchPonyfill?: FetchFn; } export interface AuthVerify { authorization: string; } export interface PublicVerify { projectID: string; chatVersion?: number; } export interface PrototypeVerify { projectID: string; versionID: string; prototype: true; authorization: string; } export interface ShareableLinkVerify { projectID: string; shareableLink: true; } export type AnyVerify = Partial; export declare const isAuthRuntimeOptions: (options: RuntimeOptions) => options is RuntimeOptions; export declare const isPublicRuntimeOptions: (options: RuntimeOptions) => options is RuntimeOptions; export declare const isPrototypeRuntimeOptions: (options: RuntimeOptions) => options is RuntimeOptions; export declare const isShareableLinkRuntimeOptions: (options: RuntimeOptions) => options is RuntimeOptions; export interface RuntimeFeedbackRequest { name: string; sessionID: string; versionID?: string; versionVariant?: 'draft' | 'published'; [key: string]: any; } export interface RuntimeCSATRequest { sessionID: string; versionID?: string; versionVariant?: 'draft' | 'published'; score?: number; feedback?: string; transcriptID: string; keepalive?: boolean; } export type RuntimeAction = AnyRequest; export declare const isRuntimeAction: (value: unknown) => value is RuntimeAction; export interface IntentActionPayload { query: string; intent: { name: string; }; entities: { name: string; value: string; }[]; confidence?: number; } export declare const createIntentAction: (payload: IntentRequestPayload) => IntentRequest; export interface RuntimeState { turn: Record; storage: Record; variables: Record; } export declare const isRuntimeTraceType: (value: unknown) => value is TraceType; export declare const isRuntimeTrace: (value: unknown) => value is BaseTrace; export interface RuntimeHttpRequest { method?: string; params?: URLSearchParams; body?: any; headers?: HeadersInit; credentials?: RequestCredentials; keepalive?: boolean; } export interface Transcript { _id: string; sessionID: string; creatorID: number; projectID: string; os: string; unread: boolean; device: string; browser: string; createdAt: number; reportTags: string[]; } export interface DownloadTranscriptPayload { userID: string; environmentID: string; versionVariant?: 'draft' | 'published'; projectID: string; sessionKey: string; } export {}; //# sourceMappingURL=runtime.interface.d.ts.map