/// /// import { ConnectionState, LegacyBaileysEventEmitter, LegacySocketConfig } from '../Types'; declare const makeAuthSocket: (config: LegacySocketConfig) => { state: ConnectionState; authInfo: import("../Types").LegacyAuthenticationCreds; ev: LegacyBaileysEventEmitter; canLogin: () => boolean; logout: () => Promise; /** Waits for the connection to WA to reach a state */ waitForConnectionUpdate: (check: (u: Partial) => boolean | undefined, timeoutMs?: number | undefined) => Promise; type: "legacy"; ws: import("ws"); sendAdminTest: () => Promise; updateKeys: (info: { encKey: Buffer; macKey: Buffer; }) => { encKey: Buffer; macKey: Buffer; }; waitForSocketOpen: () => Promise; sendNode: ({ json, binaryTag, tag, longTag }: import("../Types").SocketSendMessageOptions) => Promise; generateMessageTag: (longTag?: boolean) => string; waitForMessage: (tag: string, requiresPhoneConnection: boolean, timeoutMs?: number | undefined) => { promise: Promise; cancelToken: () => void; }; query: ({ json, timeoutMs, expect200, tag, longTag, binaryTag, requiresPhoneConnection }: import("../Types").SocketQueryOptions) => Promise; setQuery: (nodes: import("..").BinaryNode[], binaryTag?: import("../Types").WATag, tag?: string | undefined) => Promise<{ status: number; }>; currentEpoch: () => number; end: (error: Error | undefined) => void; }; export default makeAuthSocket;