import { default as HiddenValueCallback } from '../fr-auth/callbacks/hidden-value-callback'; import { default as MetadataCallback } from '../fr-auth/callbacks/metadata-callback'; import { default as TextOutputCallback } from '../fr-auth/callbacks/text-output-callback'; declare enum AttestationType { Direct = "direct", Indirect = "indirect", None = "none" } interface DeviceStepState extends StepState { value1: number; value2: number; } declare enum UserVerificationType { Discouraged = "discouraged", Preferred = "preferred", Required = "required" } interface RelyingParty { name: string; id?: string; } interface ResponseCredential { response: { clientDataJSON: ArrayBuffer; }; } interface Step { data?: TData; state: TState; type: StepType; } interface StepState { authId: string; } declare enum StepType { DeviceAuthentication = "DeviceAuthentication", DeviceRegistration = "DeviceRegistration", DeviceRegistrationChoice = "DeviceRegistrationChoice", LoginFailure = "LoginFailure", LoginSuccess = "LoginSuccess", OneTimePassword = "OneTimePassword", SecondFactorChoice = "SecondFactorChoice", Username = "Username", UsernamePassword = "UsernamePassword", UserPassword = "UserPassword" } interface WebAuthnRegistrationMetadata { attestationPreference: 'none' | 'indirect' | 'direct'; authenticatorSelection: string; challenge: string; excludeCredentials: string; pubKeyCredParams: string; relyingPartyId: string; relyingPartyName: string; timeout: number; userId: string; userName: string; displayName?: string; supportsJsonResponse?: boolean; } interface WebAuthnAuthenticationMetadata { _action?: 'webauthn_authentication'; acceptableCredentials?: string; allowCredentials?: string; _allowCredentials?: PublicKeyCredentialDescriptor[]; challenge: string; relyingPartyId: string; _relyingPartyId?: string; timeout: number; userVerification: UserVerificationType; mediation?: string; extensions?: Record; _type?: 'WebAuthn'; supportsJsonResponse?: boolean; } interface WebAuthnCallbacks { hiddenCallback?: HiddenValueCallback; metadataCallback?: MetadataCallback; textOutputCallback?: TextOutputCallback; } type WebAuthnTextOutputRegistration = string; interface ParsedCredential { id: ArrayBuffer; type: 'public-key'; } export type { DeviceStepState, ParsedCredential, RelyingParty, ResponseCredential, Step, WebAuthnCallbacks, WebAuthnAuthenticationMetadata, WebAuthnRegistrationMetadata, WebAuthnTextOutputRegistration, }; export { AttestationType, StepType, UserVerificationType }; //# sourceMappingURL=interfaces.d.ts.map