export function makeSocket(config: any): { type: string; ws: WebSocketClient; ev: { process(handler: any): () => void; emit(event: any, evData: any): any; isBuffering(): boolean; buffer: () => void; flush: () => boolean; createBufferedFunction(work: any): (...args: any[]) => Promise; on: (...args: any[]) => any; off: (...args: any[]) => any; removeAllListeners: (...args: any[]) => any; destroy(): void; }; authState: { creds: any; keys: { get: (type: any, ids: any) => Promise; set: (data: any) => Promise; isInTransaction: () => boolean; transaction: (work: any, key: any) => Promise; }; }; signalRepository: any; readonly user: any; generateMessageTag: () => string; query: (node: any, timeoutMs: any) => Promise; waitForMessage: (msgId: any, timeoutMs?: any) => Promise; waitForSocketOpen: () => Promise; sendRawMessage: (data: any) => Promise; sendNode: (frame: any) => Promise; logout: (msg: any) => Promise; end: (error: any) => Promise; registerSocketEndHandler: (handler: any) => void; onUnexpectedError: (err: any, msg: any) => void; uploadPreKeys: (count?: number) => Promise; uploadPreKeysToServerIfRequired: () => Promise; digestKeyBundle: () => Promise; rotateSignedPreKey: () => Promise; requestPairingCode: (phoneNumber: any, customPairingCode: any) => Promise; updateServerTimeOffset: ({ attrs }: { attrs: any; }) => void; sendUnifiedSession: () => Promise; wamBuffer: BinaryInfo; /** Waits for the connection to WA to reach a state */ waitForConnectionUpdate: (check: any, timeoutMs: any) => Promise; sendWAMBuffer: (wamBuffer: any) => Promise; executeUSyncQuery: (usyncQuery: any) => Promise; onWhatsApp: (...phoneNumber: any[]) => Promise; fetchAccountReachoutTimelock: () => Promise<{ isActive: boolean; timeEnforcementEnds: Date | undefined; enforcementType: any; }>; fetchNewChatMessageCap: () => Promise; }; import { WebSocketClient } from './Client/index.js'; import { BinaryInfo } from '../WAM/BinaryInfo.js'; //# sourceMappingURL=socket.d.ts.map