import { KeyPair, KeysArray, KeysConfig } from "./libs/KeyPair"; import { AttestedObject } from "./libs/AttestedObject"; import { Verifiable } from "./libs/Verifiable"; import { TokenValidateable } from "./libs/TokenValidateable"; import { Validateable } from "./libs/Validateable"; export interface TicketValidate { valid: boolean; ticketId?: string; ticketClass?: number; massage?: string; } export declare class Authenticator { static decodePublicKey(file: string): KeyPair; static getUseTicket(ticketSecret: bigint, attestationSecret: bigint, base64ticket: string, base64attestation: string, base64attestationPublicKey: string, base64senderPublicKeys: KeysConfig | KeysArray): Promise; static validateUseTicket(proof: string, base64attestorPublicKey: string, base64issuerPublicKeys: { [key: string]: KeyPair | string; }, userEthKey?: string): AttestedObject | undefined; static requestAttest(receiverId: string, type: string, attestorDomain: string, secret: bigint, userKey: KeyPair): Promise; static constructAttest(attestorKey: KeyPair, issuerName: string, validityInMilliseconds: number, attestRequestJson: string, attestorDomain: string, usageValue?: string): string; static useAttest(attestationBase64: string, attestationSecretBase64: string, attestorKey: KeyPair, receiverId: string, type: string, webDomain: string, sessionKey: KeyPair, userKey: KeyPair): Promise; static checkAttestRequestVerifiability(input: Verifiable): void; static checkAttestRequestValidity(input: Validateable): void; static checkUsageVerifiability(input: Verifiable): void; static checkUsageValidity(input: TokenValidateable): void; static verifyUsage(jsonRequest: string, attestorKey: KeyPair, message: string, WEB_DOMAIN: string, signature: Uint8Array): Promise<"SUCCESSFULLY validated usage request!" | undefined>; static requestAttestAndUsage(userKey: KeyPair, receiverId: string, type: string, ATTESTOR_DOMAIN: string, attestationSecretBase64: string, sessionKey: KeyPair): Promise; static validateTicket(ticketBase64: string, confernceId: string, publicKeyPEM: string): TicketValidate; }