/// import { WATag, LegacyAuthenticationCreds, AuthenticationCreds, CurveKeyPair, Contact } from "../Models"; export declare const newLegacyAuthCreds: () => LegacyAuthenticationCreds; export declare const decodeWAMessage: (message: Buffer | string, auth: { macKey: Buffer; encKey: Buffer; }, fromMe?: boolean) => readonly [string, any, WATag]; /** * Once the QR code is scanned and we can validate our connection, or we resolved the challenge when logging back in * @private * @param json */ export declare const validateNewConnection: (json: { [_: string]: any; }, auth: LegacyAuthenticationCreds, curveKeys: CurveKeyPair) => { user: Contact; auth: LegacyAuthenticationCreds; phone: any; }; export declare const computeChallengeResponse: (challenge: string, auth: LegacyAuthenticationCreds) => string[]; export declare const useSingleFileLegacyAuthState: (file: string) => { state: LegacyAuthenticationCreds; saveState: () => void; }; export declare const getAuthenticationCredsType: (creds: LegacyAuthenticationCreds | AuthenticationCreds) => "legacy" | "md";