import { ImsgRpc } from './rpc.js'; import { type IMessageChatSummary, type IMessageMessageSummary, type IMessageStatus } from './types.js'; export interface SendTarget { chatId?: number; chatGuid?: string; chatIdentifier?: string; to?: string; } export type OneShotRunner = (binaryPath: string, args: string[]) => Promise<{ code: number; stdout: string; stderr: string; }>; export declare class ImsgClient { private binaryPath; private region; private rpc; private runner; constructor(deps?: { rpc?: ImsgRpc; runner?: OneShotRunner; }); login(credentials?: { binaryPath?: string; region?: string; }): Promise; connect(): Promise; getVersion(): Promise; getStatus(): Promise; listChats(limit?: number): Promise; searchChats(query: string, limit?: number): Promise; getMessages(chatId: number, limit?: number, start?: string): Promise; sendMessage(target: SendTarget, text: string): Promise; sendReaction(chatId: number, reaction: string, messageGuid?: string): Promise; watch(onMessage: (msg: IMessageMessageSummary) => void, options?: { chatId?: number; sinceRowId?: number; onError?: (msg: string) => void; }): Promise<() => Promise>; getProfile(): Promise; close(): Promise; } //# sourceMappingURL=client.d.ts.map