import type { GenericError } from '@forgerock/sdk-types'; import type { FidoAuthenticationInputValue, FidoRegistrationInputValue } from '../collector.types.js'; import type { FidoAuthenticationOptions, FidoRegistrationOptions } from '../davinci.types.js'; export interface FidoClient { /** * Create a keypair and get the public key credential to send back to DaVinci for registration * @function register * @param { FidoRegistrationOptions } options - DaVinci FIDO registration options * @returns { Promise } - The formatted credential for DaVinci or an error */ register: (options: FidoRegistrationOptions) => Promise; /** * Get an assertion to send back to DaVinci for authentication * @function authenticate * @param { FidoAuthenticationOptions } options - DaVinci FIDO authentication options * @returns { Promise } - The formatted assertion for DaVinci or an error */ authenticate: (options: FidoAuthenticationOptions) => Promise; } /** * A client function that returns a set of methods for transforming DaVinci data and * interacting with the WebAuthn API for registration and authentication * @function fido * @returns {FidoClient} - A set of methods for FIDO registration and authentication */ export declare function fido(): FidoClient; //# sourceMappingURL=fido.d.ts.map