UNPKG

@vot.js/shared

Version:

shared for all @vot.js package

11 lines 862 B
import { ClientSession, SecType, SecYaHeaders } from "./types/secure.js"; export declare function getSignature(body: Uint8Array): Promise<string>; export declare function getSecYaHeaders<T extends SecType>(secType: T, session: ClientSession, body: T extends "Ya-Summary" ? undefined : Uint8Array, path: string): Promise<SecYaHeaders<T>>; export declare function getUUID(): string; export declare function getHmacSha1(hmacKey: string, salt: string): Promise<string | false>; export declare const browserSecHeaders: { readonly "sec-ch-ua": `"Chromium";v="134", "YaBrowser";v="${string}", "Not?A_Brand";v="24", "Yowser";v="2.5"`; readonly "sec-ch-ua-full-version-list": `"Chromium";v="134.0.6998.543", "YaBrowser";v="${string}", "Not?A_Brand";v="24.0.0.0", "Yowser";v="2.5"`; readonly "Sec-Fetch-Mode": "no-cors"; }; //# sourceMappingURL=secure.d.ts.map