import { HexString } from '../utils/types'; import { BytesEncodingStatus, EnvironmentType } from './enums'; import { Signature } from './signature'; export interface AuthenticatedBody { nonce: string; sender: HexString; signature: Signature; } export interface KGWAuthInfo { nonce: string; statement: string; issue_at: string; expiration_time: string; chain_id: string; domain: string; version: string; uri: string; } export type AuthSuccess = T extends EnvironmentType.BROWSER ? BrowserAuthSuccess : NodeAuthSuccess; export interface BrowserAuthSuccess { result: string; } export interface NodeAuthSuccess { result: string; cookie?: string; } export type LogoutResponse = T extends EnvironmentType.BROWSER ? LogoutResponseWeb : LogoutResponseNode; interface LogoutResponseWeb { result: string; } interface LogoutResponseNode { result: string; cookie?: string; } export declare function composeAuthMsg(authParam: KGWAuthInfo, domain: string, version: string, chainId: string): string; export declare function generateSignatureText(namespace: string, action: string, digest: HexString, challenge: string): string; export declare function removeTrailingSlash(url: string): string; export declare function verifyAuthProperties(authParm: KGWAuthInfo, domain: string, version: string, chainId: string): void; export {};