//#region src/base64url.d.ts declare const stringToBytes: (str: string) => Uint8Array; declare const bytesToString: (bytes: Uint8Array) => string; declare const concatBytes: (...byteArrays: Array) => Uint8Array; declare const compareBytes: (lhs: Uint8Array, rhs: Uint8Array) => boolean; declare const base64urlEncode: (input: string) => string; declare const base64urlDecode: (input: string) => string; declare const uint8ArrayToBase64Url: (bytes: Uint8Array) => string; declare const base64UrlToUint8Array: (base64url: string) => Uint8Array; declare const base64: { encode: (bytes: Uint8Array) => string; decode: (base64: string) => Uint8Array; }; declare const base64url: { encode: (bytes: Uint8Array) => string; decode: (base64url: string) => Uint8Array; }; //#endregion //#region src/decode-jwt.d.ts declare const decodeJwt: , T extends Record>(jwt: string) => { header: H; payload: T; signature: string; }; //#endregion //#region src/hex.d.ts declare const hexEncode: (input: Uint8Array) => string; declare const hexDecode: (input: string) => Uint8Array; declare const hex: { encode: (bytes: Uint8Array) => string; decode: (hex: string) => Uint8Array; }; //#endregion //#region src/identity-exception.d.ts /** * IdentityException is the base error class for all identity-common-ts packages. * * Package-specific exception classes should extend this class. */ declare class IdentityException extends Error { details?: unknown; constructor(message: string, details?: unknown); getFullMessage(): string; } //#endregion //#region src/identity-common-exception.d.ts /** * IdentityCommonException is a custom error class for identity-common-related exceptions. */ declare class IdentityCommonException extends IdentityException { constructor(message: string, details?: unknown); } //#endregion //#region src/types.d.ts interface RsaOtherPrimesInfo { d?: string; r?: string; t?: string; } interface JsonWebKey { alg?: string; crv?: string; d?: string; dp?: string; dq?: string; e?: string; ext?: boolean; k?: string; key_ops?: string[]; kty?: string; n?: string; oth?: RsaOtherPrimesInfo[]; p?: string; q?: string; qi?: string; use?: string; x?: string; y?: string; } interface JwtPayload { cnf?: { jwk: JsonWebKey; }; exp?: number; iat?: number; [key: string]: unknown; } type Base64urlString = string; type OrPromise = T | Promise; type Signer = (data: string) => OrPromise; type Verifier = (data: string, sig: string, options?: T) => OrPromise; type Hasher = (data: string | ArrayBuffer, alg: string) => OrPromise; type SaltGenerator = (length: number) => OrPromise; type HasherAndAlg = { hasher: Hasher; alg: string; }; type SignerSync = (data: string) => string; type VerifierSync = (data: string, sig: string) => boolean; type HasherSync = (data: string, alg: string) => Uint8Array; type SaltGeneratorSync = (length: number) => string; type HasherAndAlgSync = { hasher: HasherSync; alg: string; }; declare const IANA_HASH_ALGORITHMS: readonly ["sha-256", "sha-256-128", "sha-256-120", "sha-256-96", "sha-256-64", "sha-256-32", "sha-384", "sha-512", "sha3-224", "sha3-256", "sha3-384", "sha3-512", "blake2s-256", "blake2b-256", "blake2b-512", "k12-256", "k12-512"]; type HashAlgorithm = (typeof IANA_HASH_ALGORITHMS)[number]; //#endregion export { Base64urlString, HashAlgorithm, Hasher, HasherAndAlg, HasherAndAlgSync, HasherSync, IANA_HASH_ALGORITHMS, IdentityCommonException, IdentityException, JsonWebKey, JwtPayload, OrPromise, RsaOtherPrimesInfo, SaltGenerator, SaltGeneratorSync, Signer, SignerSync, Verifier, VerifierSync, base64, base64UrlToUint8Array, base64url, base64urlDecode, base64urlEncode, bytesToString, compareBytes, concatBytes, decodeJwt, hex, hexDecode, hexEncode, stringToBytes, uint8ArrayToBase64Url }; //# sourceMappingURL=index.d.cts.map