import type { IWebchatPublic } from "../client/webchat/webchat"; import type { IWebchatState } from "../types/webchat"; type Token = { token: string; }; type TokenProvider = () => Promise; type UseWebchatParams = { agentId: string; getToken: TokenProvider; sampleRate?: number; endpoint?: string | null; }; type UseWebchatReturn = { state: IWebchatState; start: () => Promise; stop: () => void; webchat: IWebchatPublic; }; export declare function useWebchat(params: UseWebchatParams): UseWebchatReturn; export {};