ntag424
Version:
A Node.js implementation for interop with NTAG 424 DNA.
19 lines (18 loc) • 598 B
TypeScript
export declare class ResponseStatus {
#private;
get status1(): number;
get status2(): number;
constructor(status: Buffer);
throwIfError(step?: string): void;
isOk(): boolean;
toString(): string;
}
export declare class CommandResponse {
readonly status: ResponseStatus;
readonly data: Buffer | null;
constructor(status: ResponseStatus, data: Buffer | null);
static create(status: Buffer, data: Buffer | null): CommandResponse;
throwIfError(this: this, step?: string): void;
isError(): boolean;
getDataOrThrow(step?: string): Buffer | never;
}