import { AxiosResponse } from 'axios';
declare class WebAuthn {
    private registerPath;
    private loginPath;
    private callbackPath;
    constructor();
    initUrl(): void;
    base64ToBuffer: (base64string: string) => ArrayBuffer | undefined;
    register(opt?: {
        platform: string;
        remark?: string;
        device?: string;
    }): Promise<AxiosResponse | unknown>;
    login(opt: {
        mediation?: 'silent' | 'optional' | 'required' | 'conditional';
        platform?: string;
        credentialId?: string;
    }): Promise<AxiosResponse<any, any> | unknown>;
}
export default WebAuthn;
