import type { PasskeyCreateRequest, PasskeyCreateResult, PasskeyGetRequest, PasskeyGetResult, PasskeySignalUnknownCredentialRequest, PasskeySignalAllAcceptedCredentialsRequest } from './PasskeyTypes'; export declare class Passkey { /** * Creates a new Passkey * * @param request The FIDO2 Attestation Request in JSON format * @param options An object containing options for the registration process * @returns The FIDO2 Attestation Result in JSON format * @throws */ static create(request: PasskeyCreateRequest): Promise; /** * Creates a new Passkey * Forces the usage of a platform authenticator on iOS * * @param request The FIDO2 Attestation Request in JSON format * @param options An object containing options for the registration process * @returns The FIDO2 Attestation Result in JSON format * @throws */ static createPlatformKey(request: PasskeyCreateRequest): Promise; /** * Creates a new Passkey * Forces the usage of a security authenticator on iOS * * @param request The FIDO2 Attestation Request in JSON format * @param options An object containing options for the registration process * @returns The FIDO2 Attestation Result in JSON format * @throws */ static createSecurityKey(request: PasskeyCreateRequest): Promise; /** * Authenticates using an existing Passkey * * @param request The FIDO2 Assertion Request in JSON format * @param options An object containing options for the authentication process * @returns The FIDO2 Assertion Result in JSON format * @throws */ static get(request: PasskeyGetRequest): Promise; /** * Authenticates using an existing Passkey, but only if a credential is * immediately available on the device. On iOS 16+ this uses * `ASAuthorizationController.preferImmediatelyAvailableCredentials` and on * Android the `preferImmediatelyAvailableCredentials` flag of * `GetCredentialRequest`. When no credential is available the request fails * silently (no modal) with a `NoCredentials` error, making this suitable for * silent / opportunistic checks. * * @param request The FIDO2 Assertion Request in JSON format * @returns The FIDO2 Assertion Result in JSON format * @throws */ static getImmediate(request: PasskeyGetRequest): Promise; /** * Authenticates using an existing Passkey * Forces the usage of a platform authenticator on iOS * * @param request The FIDO2 Assertion Request in JSON format * @param options An object containing options for the authentication process * @returns The FIDO2 Assertion Result in JSON format * @throws */ static getPlatformKey(request: PasskeyGetRequest): Promise; /** * Authenticates using an existing Passkey * Forces the usage of a security authenticator on iOS * * @param request The FIDO2 Assertion Request in JSON format * @param options An object containing options for the authentication process * @returns The FIDO2 Assertion Result in JSON format * @throws */ static getSecurityKey(request: PasskeyGetRequest): Promise; /** * Reports a credential the relying party no longer recognizes so OS credential * managers can remove / hide it (WebAuthn Signal API). * * Use this when **unauthenticated** (e.g. after a failed sign-in): it takes a * single credential id and no user handle, so it reveals nothing about the user. * For the authenticated full-set reconcile, use `signalAllAcceptedCredentials` * instead. * * This is best-effort and resolves once the request is accepted. It no-ops on OS * versions without Signal API support (iOS < 26). * * @param request The relying party id and the base64URL encoded credential id * @returns A Promise that resolves once the signal has been delivered * @throws */ static signalUnknownCredential(request: PasskeySignalUnknownCredentialRequest): Promise; /** * Reports the complete set of credential ids the relying party still accepts for * a given user (WebAuthn Signal API). OS credential managers remove / hide any * stored credentials not in the list (reversible — re-add an id to restore; an * empty list hides all). * * Use this when **authenticated** (after login, or after adding / deleting a * passkey): it needs the user handle and the full accepted set, so it * authoritatively prunes. For a single credential when unauthenticated, use * `signalUnknownCredential` instead. * * This is best-effort and resolves once the request is accepted. It no-ops on OS * versions without Signal API support (iOS < 26). * * @param request The relying party id, the base64URL encoded user handle and the * base64URL encoded credential ids still accepted by the server * @returns A Promise that resolves once the signal has been delivered * @throws */ static signalAllAcceptedCredentials(request: PasskeySignalAllAcceptedCredentialsRequest): Promise; /** * Checks if Passkeys are supported on the current device * * @returns A boolean indicating whether Passkeys are supported */ static isSupported(): boolean; } //# sourceMappingURL=Passkey.d.ts.map