import { AuthToken } from "../types"; export declare const AUTH_TOKEN_EXPIRY_S: number; /** * Decode and verify auth token * @param auth the auth token * @returns authorised user data */ export declare function authenticate(auth: string): AuthToken; /** * Generates a 1-hour valid auth token * @param privateKey the 0x hex prefixed standard eth private key * @param expiryS the expiry time for the token in seconds * @returns auth token for that key */ export declare function generateAuthToken(privateKey: string, expiryS?: number): Promise;