import { TokenUser, User } from "@openiap/openflow-api"; import { Span } from "@opentelemetry/api"; import { WebSocketServerClient } from "./WebSocketServerClient"; export declare class Crypt { static encryption_key: string; static iv_length: number; static bcrypt_salt_rounds: number; static rootUser(): User; static rootToken(): string; static SetPassword(user: User, password: string, parent: Span): Promise; static ValidatePassword(user: User, password: string, parent: Span): Promise; static encrypt(text: string): string; static decrypt(text: string): string; static hash(password: string): Promise; static compare(password: string, passwordhash: string, parent: Span): Promise; static createToken(item: User | TokenUser, expiresIn: string): string; static verityToken(token: string, cli?: WebSocketServerClient): Promise; static decryptToken(token: string): any; }