import { Payload } from "../../transport" ; import { NfcCmd } from "../nfc" ; TODO export const CtapNfcErrorCmd = 0x2 ; export enum CtapNfcErrorCode { InvalidCmd = 0x1 , InvalidPar = 0x2 , InvalidLen = 0x3 , InvalidSeq = 0x4 , ReqTimeout = 0x5 , Busy = 0x6 , Other = 0x7f } export class CtapNfcErrorReq implements NfcCmd { initialize ( ... args ) { throw new Error ( "Method not implemented." ) ; } serialize ( ) { throw new Error ( "Method not implemented." ) ; } deserialize ( payload ) { throw new Error ( "Method not implemented." ) ; } } export class CtapNfcErrorRes implements NfcCmd { code ! : number ; initialize ( ... args ) { throw new Error ( "Method not implemented." ) ; } serialize ( ) { throw new Error ( "Method not implemented." ) ; } deserialize ( payload ) { this . code = payload . readUInt8 ( 0 ) ; return this ; } }