import { Client as AutoGeneratedClient } from './gen/client'; import { SignalListener } from './signal-listener'; export { Message, Conversation, User } from './gen/client'; export { SignalListener, Events as Signals } from './signal-listener'; export * from './gen/client/errors'; export type Headers = Record; export type ClientProps = { apiUrl: string; timeout?: number; sseTimeout?: number; headers?: Headers; }; type IOf = { [K in keyof T]: T[K]; }; type IAutoClient = IOf; type IClient = Omit; type ListenConversationOperation = IAutoClient['listenConversation']; type ListenConversationArgs = Parameters[0]; type InitializeConversationOperation = IAutoClient['initializeConversation']; type InitializeConversationArgs = Parameters[0]; export declare class Client implements IClient { readonly props: Readonly; private _auto; constructor(props: Readonly); readonly createConversation: IAutoClient['createConversation']; readonly getConversation: IAutoClient['getConversation']; readonly deleteConversation: IAutoClient['deleteConversation']; readonly listConversations: IAutoClient['listConversations']; readonly listConversationMessages: IAutoClient['listConversationMessages']; readonly addParticipant: IAutoClient['addParticipant']; readonly removeParticipant: IAutoClient['removeParticipant']; readonly getParticipant: IAutoClient['getParticipant']; readonly listParticipants: IAutoClient['listParticipants']; readonly createMessage: IAutoClient['createMessage']; readonly updateMessage: IAutoClient['updateMessage']; readonly selectMessage: IAutoClient['selectMessage']; readonly getMessage: IAutoClient['getMessage']; readonly deleteMessage: IAutoClient['deleteMessage']; readonly createFile: IAutoClient['createFile']; readonly createUser: IAutoClient['createUser']; readonly generateUserKey: IAutoClient['generateUserKey']; readonly getUser: IAutoClient['getUser']; readonly updateUser: IAutoClient['updateUser']; readonly deleteUser: IAutoClient['deleteUser']; readonly createEvent: IAutoClient['createEvent']; readonly getEvent: IAutoClient['getEvent']; readonly addMessageFeedback: IAutoClient['addMessageFeedback']; readonly initializeConversation: ({ "x-user-key": userKey, conversationId, }: InitializeConversationArgs) => Promise; readonly sendPerfMetrics: IAutoClient['sendPerfMetrics']; readonly removeMessageFeedback: IAutoClient['removeMessageFeedback']; readonly listenConversation: ({ id, "x-user-key": userKey, }: ListenConversationArgs) => Promise; }