Files
NapCatQQ/.pnpm-store/v3/files/f8/22f07109f5f14dc059833a1090944ec0f2d2df6c62b49d512b60a63ff0cf8c7961294e94003fcb44a1789d9201e0b4c1b771485e51103833df12e9badf7d69
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

35 lines
1.4 KiB
Plaintext

import type { Uint8Array_ } from '../types/index.js';
/**
* Convert an AttestationObject buffer to a proper object
*
* @param base64AttestationObject Attestation Object buffer
*/
export declare function decodeAttestationObject(attestationObject: Uint8Array_): AttestationObject;
export type AttestationFormat = 'fido-u2f' | 'packed' | 'android-safetynet' | 'android-key' | 'tpm' | 'apple' | 'none';
export type AttestationObject = {
get(key: 'fmt'): AttestationFormat;
get(key: 'attStmt'): AttestationStatement;
get(key: 'authData'): Uint8Array_;
};
/**
* `AttestationStatement` will be an instance of `Map`, but these keys help make finite the list of
* possible values within it.
*/
export type AttestationStatement = {
get(key: 'sig'): Uint8Array_ | undefined;
get(key: 'x5c'): Uint8Array_[] | undefined;
get(key: 'response'): Uint8Array_ | undefined;
get(key: 'alg'): number | undefined;
get(key: 'ver'): string | undefined;
get(key: 'certInfo'): Uint8Array_ | undefined;
get(key: 'pubArea'): Uint8Array_ | undefined;
readonly size: number;
};
/**
* Make it possible to stub the return value during testing
* @ignore Don't include this in docs output
*/
export declare const _decodeAttestationObjectInternals: {
stubThis: (value: AttestationObject) => AttestationObject;
};
//# sourceMappingURL=decodeAttestationObject.d.ts.map