import type { EventEmitter } from 'events'; import type { WasmWhatsAppClient } from 'whatsapp-rust-bridge'; import type { BaileysEventEmitter, SocketConfig } from '../Types/index.js'; import type { ILogger } from '../Utils/logger.js'; /** Shared context passed to all Socket method factories */ export interface SocketContext { ev: BaileysEventEmitter; logger: ILogger; fullConfig: SocketConfig; getUser: () => { id?: string; lid?: string; } | undefined; setUser: (u: { id?: string; lid?: string; }) => void; /** Returns the bridge client, awaiting initialization if needed */ getClient: () => Promise; /** Returns the bridge client synchronously, throws if not yet initialized */ getClientSync: () => WasmWhatsAppClient; /** Raw stanza EventEmitter for CB: pattern compat */ ws: EventEmitter; } /** Convert a bridge Jid struct to a string */ export declare const jidStr: (jid: { user: string; server: string; }) => string; //# sourceMappingURL=types.d.ts.map