wangzhibo
2026-05-09 53418655c061ac26f66058253f39200aced1ab1d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { ICrypto } from "../crypto/ICrypto.js";
import { RequestStateObject } from "./StateTypes.js";
/**
 * Appends user state with random guid, or returns random guid.
 * @param cryptoObj
 * @param userState
 * @param meta
 */
export declare function setRequestState(cryptoObj: ICrypto, userState?: string, meta?: Record<string, string>): string;
/**
 * Generates the state value used by the common library.
 * @param cryptoObj
 * @param meta
 */
export declare function generateLibraryState(cryptoObj: ICrypto, meta?: Record<string, string>): string;
/**
 * Parses the state into the RequestStateObject, which contains the LibraryState info and the state passed by the user.
 * @param base64Decode
 * @param state
 */
export declare function parseRequestState(base64Decode: (input: string) => string, state: string): RequestStateObject;
//# sourceMappingURL=ProtocolUtils.d.ts.map