import * as Actions from './types/actions'; import { RequestBodyEvent } from './types/clientEntities'; import { Request } from './types/frames'; export declare const destroy: (reason: string) => Actions.DestroyAction; export declare const loginSuccess: (payload: Actions.LoginSuccessAction['payload']) => Actions.LoginSuccessAction; export declare const pauseConnection: (reason: string) => Actions.PauseConnectionAction; export declare const prefetchToken: (fresh?: boolean) => Actions.PrefetchTokenAction; export declare const reconnect: (delay: number) => Actions.ReconnectAction; export declare const sendRequest: (action: A, payload: (Extract<{ request_id: string; version?: string | undefined; action: "accept_greeting"; payload: { greeting_id: number; unique_id: string; }; }, { action: A; }> | Extract<{ request_id: string; version?: string | undefined; action: "cancel_greeting"; payload: { unique_id: string; }; }, { action: A; }> | Extract<{ request_id: string; version?: string | undefined; action: "deactivate_chat"; payload: { id: string; }; }, { action: A; }> | Extract<{ request_id: string; version?: string | undefined; action: "delete_chat_properties"; payload: { id: string; properties: Record; }; }, { action: A; }> | Extract<{ request_id: string; version?: string | undefined; action: "delete_event_properties"; payload: { chat_id: string; thread_id: string; event_id: string; properties: Record; }; }, { action: A; }> | Extract<{ request_id: string; version?: string | undefined; action: "delete_thread_properties"; payload: { chat_id: string; thread_id: string; properties: Record; }; }, { action: A; }> | Extract<{ request_id: string; version?: string | undefined; action: "get_chat"; payload: { chat_id: string; thread_id?: string | undefined; }; }, { action: A; }> | Extract<{ request_id: string; version?: string | undefined; action: "get_customer"; payload: { [x: string]: never; }; }, { action: A; }> | Extract<{ request_id: string; version?: string | undefined; action: "get_form"; payload: { type: import("./types/serverEntities").FormType; group_id: number; }; }, { action: A; }> | Extract<{ request_id: string; version?: string | undefined; action: "get_url_info"; payload: { url: string; }; }, { action: A; }> | Extract<{ request_id: string; version?: string | undefined; action: "list_group_statuses"; payload: { group_ids: number[]; } | { all: true; }; }, { action: A; }> | Extract<{ request_id: string; version?: string | undefined; action: "list_chats"; payload: { limit?: number | undefined; page_id?: string | undefined; }; }, { action: A; }> | Extract<{ request_id: string; version?: string | undefined; action: "list_threads"; payload: { chat_id: string; sort_order?: "asc" | "desc" | undefined; limit?: number | undefined; page_id?: string | undefined; min_events_count?: number | undefined; }; }, { action: A; }> | Extract<{ request_id: string; version?: string | undefined; action: "login"; payload: { token: string; customer?: { avatar?: string | undefined; email?: string | undefined; name?: string | undefined; fields?: import("./types/serverEntities").CustomerSessionFields | undefined; } | undefined; customer_page?: { url?: string | undefined; title?: string | undefined; } | undefined; customer_side_storage?: import("./types/serverEntities").SideStorage | undefined; is_mobile?: boolean | undefined; group_id?: number | undefined; referrer?: string | undefined; tab_id?: string | undefined; pushes?: Record | undefined; }; }, { action: A; }> | Extract<{ request_id: string; version?: string | undefined; action: "mark_events_as_seen"; payload: { chat_id: string; seen_up_to: string; }; }, { action: A; }> | Extract<{ request_id: string; version?: string | undefined; action: "request_welcome_message"; payload: { id?: string | undefined; }; }, { action: A; }> | Extract<{ request_id: string; version?: string | undefined; action: "resume_chat"; payload: { active?: boolean | undefined; chat: { id: string; access?: import("./types/serverEntities").Access | undefined; properties?: import("./types/serverEntities").Properties | undefined; thread?: { events?: import("./types/serverEntities").RequestBodyEvent[] | undefined; properties?: import("./types/serverEntities").Properties | undefined; } | undefined; }; continuous?: boolean | undefined; }; }, { action: A; }> | Extract<{ request_id: string; version?: string | undefined; action: "send_event"; payload: { chat_id: string; event: import("./types/serverEntities").RequestBodyEvent; attach_to_last_thread?: boolean | undefined; }; }, { action: A; }> | Extract<{ request_id: string; version?: string | undefined; action: "send_greeting_button_clicked"; payload: { greeting_unique_id: string; button_id: string; }; }, { action: A; }> | Extract<{ request_id: string; version?: string | undefined; action: "send_rich_message_postback"; payload: { chat_id: string; thread_id: string; event_id: string; postback: { id: string; toggled: boolean; }; }; }, { action: A; }> | Extract<{ request_id: string; version?: string | undefined; action: "send_sneak_peek"; payload: { chat_id: string; sneak_peek_text: string; }; }, { action: A; }> | Extract<{ request_id: string; version?: string | undefined; action: "set_customer_session_fields"; payload: { session_fields: import("./types/serverEntities").CustomerSessionFields; }; }, { action: A; }> | Extract<{ request_id: string; version?: string | undefined; action: "start_chat"; payload: { active?: boolean | undefined; chat?: { access?: import("./types/serverEntities").Access | undefined; properties?: import("./types/serverEntities").Properties | undefined; thread?: { events?: import("./types/serverEntities").RequestBodyEvent[] | undefined; properties?: import("./types/serverEntities").Properties | undefined; } | undefined; } | undefined; continuous?: boolean | undefined; }; }, { action: A; }> | Extract<{ request_id: string; version?: string | undefined; action: "update_chat_properties"; payload: { id: string; properties: import("./types/serverEntities").Properties; }; }, { action: A; }> | Extract<{ request_id: string; version?: string | undefined; action: "update_customer_page"; payload: { url: string; title?: string | undefined; }; }, { action: A; }> | Extract<{ request_id: string; version?: string | undefined; action: "update_customer"; payload: { avatar?: string | undefined; name?: string | undefined; email?: string | undefined; fields?: import("./types/serverEntities").CustomerSessionFields | undefined; }; }, { action: A; }> | Extract<{ request_id: string; version?: string | undefined; action: "update_event_properties"; payload: { chat_id: string; thread_id: string; event_id: string; properties: import("./types/serverEntities").Properties; }; }, { action: A; }> | Extract<{ request_id: string; version?: string | undefined; action: "update_thread_properties"; payload: { chat_id: string; thread_id: string; properties: import("./types/serverEntities").Properties; }; }, { action: A; }>)["payload"], source?: 'login') => Actions.SendRequestAction; export declare const sendEvent: ({ chatId, event, attachToLastThread, }: { chatId: string; event: RequestBodyEvent; attachToLastThread?: boolean | undefined; }) => Actions.SendRequestAction; export declare const setChatActive: (id: string, active: boolean) => Actions.SetChatActiveAction; export declare const setSelfId: (id: string) => Actions.SetSelfIdAction; export declare const socketDisconnected: () => Actions.SocketDisconnectedAction; export declare const clearSensitiveSessionState: () => Actions.ClearSensitiveSessionStateAction; export declare const identityChanged: (payload: { previousId: string; newId: string; }) => Actions.IdentityChangedAction; //# sourceMappingURL=actions.d.ts.map