import { BasePlatformAdapter, MessageEvent, ProcessingOutcome, SendResult } from './platform-base.js'; import type { PlatformConfig } from './platform-base.js'; export interface SignalConfig extends PlatformConfig { httpUrl: string; account: string; ignoreStories?: boolean; groupAllowFrom?: string[]; } declare const MAX_MESSAGE_LENGTH = 8000; declare function guessExtension(contentType: string): string; declare function isLooksLikeE164(value: string): boolean; declare function isSignalServiceId(value: string): boolean; export declare class SignalChannel extends BasePlatformAdapter { private httpUrl; private account; private ignoreStories; private groupAllowFrom; private sseTask; private healthTask; private typingTasks; private typingFailures; private lastSseActivity; private recipientUuidByNumber; private recipientNumberByUuid; private recentSentTimestamps; private forceReconnectFlag; constructor(config: SignalConfig); connect(): Promise; disconnect(): Promise; private sseListener; private healthMonitor; private handleEnvelope; private rpc; private resolveRecipient; send(chatId: string, content: string, replyTo?: string, _metadata?: Record): Promise; editMessage(_chatId: string, _messageId: string, _content: string, _finalize?: boolean): Promise; sendTyping(chatId: string, _metadata?: Record): Promise; stopTyping(chatId: string): Promise; sendImage(chatId: string, imageUrl: string, caption?: string, _replyTo?: string, _metadata?: Record): Promise; sendAnimation(chatId: string, animationUrl: string, caption?: string, replyTo?: string, metadata?: Record): Promise; sendVoice(chatId: string, audioPath: string, caption?: string): Promise; sendReaction(chatId: string, targetTimestamp: number, emoji: string): Promise; getChatInfo(chatId: string): Promise>; onProcessingComplete(_event: MessageEvent, _outcome: ProcessingOutcome): void; } export { MAX_MESSAGE_LENGTH, guessExtension, isLooksLikeE164, isSignalServiceId }; //# sourceMappingURL=signal.d.ts.map