import { MESSAGE_TRACES } from './messages'; import { SessionOptions, UserTurnProps } from '../../types'; import { ChatConfig } from '../../dtos/ChatConfig.dto'; import { MessageProps, SystemResponseProps } from '../../components/SystemResponse'; import { RuntimeAction } from '@voiceflow/sdk-runtime'; export declare enum FeedbackName { POSITIVE = "Thumbs up", NEGATIVE = "Thumbs down" } export interface RuntimeAPIContext extends Pick { turnID: string; } export declare const createContext: (turnID: string) => RuntimeAPIContext; export declare const useRuntimeAPI: ({ url, user, userID, verify, versionID, audioEvents, traceHandlers, }: ChatConfig & Pick & { traceHandlers?: typeof MESSAGE_TRACES; audioEvents?: boolean; }) => { interact: (turnID: string, action: RuntimeAction, config?: any) => Promise; interactStream: (turnID: string, action: RuntimeAction) => Promise>; saveFeedback: (name: FeedbackName, lastTurnMessages: MessageProps[], userTurn: UserTurnProps | null) => Promise; saveTranscript: () => Promise; }; //# sourceMappingURL=useRuntimeAPI.d.ts.map