import { DeletedObjectResource } from "./deletedObject.js"; import { ClerkResource } from "./resource.js"; import { SnakeToCamel } from "./utils.js"; import { PasskeyVerificationResource } from "./verification.js"; import { PasskeyJSONSnapshot } from "./snapshots.js"; import { PasskeyJSON } from "./json.js"; //#region src/types/passkey.d.ts type UpdatePasskeyJSON = Pick; type UpdatePasskeyParams = Partial>; interface PasskeyResource extends ClerkResource { id: string; name: string | null; verification: PasskeyVerificationResource | null; lastUsedAt: Date | null; updatedAt: Date; createdAt: Date; update: (params: UpdatePasskeyParams) => Promise; delete: () => Promise; __internal_toSnapshot: () => PasskeyJSONSnapshot; } type PublicKeyCredentialCreationOptionsWithoutExtensions = Omit, 'extensions'>; type PublicKeyCredentialRequestOptionsWithoutExtensions = Omit, 'extensions'>; type PublicKeyCredentialWithAuthenticatorAttestationResponse = Omit & { response: Omit; }; type PublicKeyCredentialWithAuthenticatorAssertionResponse = Omit & { response: AuthenticatorAssertionResponse; }; type CredentialReturn = { publicKeyCredential: T; error: null; } | { publicKeyCredential: null; error: Error; }; //#endregion export { CredentialReturn, PasskeyResource, PublicKeyCredentialCreationOptionsWithoutExtensions, PublicKeyCredentialRequestOptionsWithoutExtensions, PublicKeyCredentialWithAuthenticatorAssertionResponse, PublicKeyCredentialWithAuthenticatorAttestationResponse, UpdatePasskeyParams }; //# sourceMappingURL=passkey.d.ts.map