import { Config } from "./binder"; import TokenHandler from "./handler/TokenHandler"; import ModalMaker from "./components/ModalMaker"; declare class WebAuthn { static CANCELED: string; static SUCCESS: string; config: Config; loaded: boolean; cotterIframeID: string; containerID: string; modalID: string; cancelDivID: string; state: string | null; verifyError?: any; verifySuccess?: any; tokenHander?: TokenHandler; originalResponse?: any; displayedError?: string; Modal: ModalMaker; constructor(config: Config, tokenHandler?: TokenHandler); init(): void; onSuccess(data: any, status?: string): void; onError(error: any): void; onErrorDisplay(error: any): void; initEventHandler(): void; static sendPost(data: object, iframeID: string): void; show(): Promise; cancel(): void; startRegistration(): void; startLogin(): void; static available(): Promise; beginRegistration(identifier: string, origin: string): Promise; finishRegistration(credential: Credential, identifier: string, origin: string): Promise; beginLogin(identifier: string, origin: string, publicKey: string): Promise; finishLogin(credential: Credential, identifier: string, origin: string, publicKey: string): Promise; } export default WebAuthn;