import { Base64, Cbor } from 'ox'; import type { Credential } from './Registration.js'; /** Default remote registry. */ export declare const remoteList = "https://github.com/passkeydeveloper/passkey-authenticator-aaguids/raw/refs/heads/main/combined_aaguid.json"; /** * Extracts the AAGUID from a serialized registration credential. * * Returns `undefined` if the attestation object cannot be decoded. * * @example * ```ts * import { Aaguid } from 'webauthx/server' * * const aaguid = Aaguid.extract(credential) * ``` */ export declare function extract(credential: Aaguid.extract['Options']): Aaguid.extract['ReturnType']; /** * Looks up friendly authenticator metadata from a remote AAGUID registry. * * @example * ```ts * import { Aaguid } from 'webauthx/server' * * const info = await Aaguid.lookup({ * id: '08987058-cadc-4b81-b6e1-30de50dcbe96', * }) * ``` */ export declare function lookup(options: Aaguid.lookup['Options']): Promise; export declare namespace Aaguid { type Aaguid = string; /** Authenticator metadata. */ type Info = { name: string; iconLight?: string | undefined; iconDark?: string | undefined; }; type extract = { Options: Credential; ReturnType: Aaguid | undefined; ErrorType: Base64.toBytes.ErrorType | Cbor.decode.ErrorType; }; type lookup = { Options: { cache?: boolean | undefined; fetchFn?: typeof fetch | undefined; id: Aaguid; remoteList?: string | undefined; }; ReturnType: Info | null; ErrorType: Error; }; } //# sourceMappingURL=Aaguid.d.ts.map