import { AuthType, AuthToken } from "./domain/auth-object"; export declare const base64url: (source: any) => string; export declare const stringify64: (mixed: any) => string; interface AuthPayload { path: string; token_id: string; nonce: number; device?: string; } export declare const encodeJWT: (authPayload: AuthPayload, secret: string) => string; export declare const createPayload: (tokenId: string, path: string, device?: string | undefined, nonce?: number | undefined) => AuthPayload; declare type CallbackType = (jwt: string) => Promise; export declare const resolveAuthToken: (authToken: AuthToken, path: string, callback: CallbackType, nonce?: number | undefined) => Promise; export declare const resolveAuth: (auth: AuthType, path: string, nonce?: number | undefined) => (callback: CallbackType) => Promise; export {};