/** * Utility helper functions */ /** * Format phone number to JID format * @param phoneNumber - Phone number with country code (e.g., "6281234567890") * @returns JID string (e.g., "6281234567890@s.whatsapp.net") */ export declare function formatPhoneNumber(phoneNumber: string): string; /** * Format group JID * @param groupId - Group ID * @returns Group JID string */ export declare function formatGroupJid(groupId: string): string; /** * Extract phone number from JID * @param jid - JID string * @returns Phone number */ export declare function extractPhoneNumber(jid: string): string; /** * Check if JID is a group * @param jid - JID string * @returns true if group, false otherwise */ export declare function isGroup(jid: string): boolean; /** * Check if JID is a status/broadcast * @param jid - JID string * @returns true if status, false otherwise */ export declare function isStatus(jid: string): boolean; /** * Delay/sleep function * @param ms - Milliseconds to delay */ export declare function sleep(ms: number): Promise; /** * Retry a function with exponential backoff * @param fn - Function to retry * @param maxRetries - Maximum number of retries * @param baseDelay - Base delay in milliseconds */ export declare function retryWithBackoff(fn: () => Promise, maxRetries?: number, baseDelay?: number): Promise; /** * Validate session ID * @param sessionId - Session ID to validate * @returns true if valid, false otherwise */ export declare function isValidSessionId(sessionId: string): boolean; //# sourceMappingURL=helpers.d.ts.map