/** * Thin CBOR decoder for Apple's App Attest attestation object. * * Apple's `DCAppAttestService.attestKey` returns a CBOR-encoded * attestation object with the W3C WebAuthn-compatible shape: * * { * fmt: "apple-appattest", * attStmt: { x5c: [leafDer, intermediateDer], receipt: }, * authData: * } * * Delegating to `cbor2` lets us parse that without writing a full CBOR * implementation. We expose a typed `parseAppAttestCbor` so the verifier * never touches raw `unknown` shapes — every field is validated as it's * lifted out. */ export interface AppAttestCbor { readonly fmt: string; readonly x5c: readonly Uint8Array[]; readonly receipt: Uint8Array | null; readonly authData: Uint8Array; } /** * Parse a CBOR-encoded App Attest attestation object. * * Returns a typed view or throws on malformed / unexpected shape. The * caller (`verify.ts`) catches the throw and converts to the * `{ valid: false, errors: [...] }` result shape. */ export declare function parseAppAttestCbor(attestationObjectBytes: Uint8Array): AppAttestCbor; //# sourceMappingURL=cbor.d.ts.map