UNPKG

@danidoble/webserial-vending-commands

Version:
40 lines 1.81 kB
type cellChannelType = { cell?: number | string; channel?: number; }; declare class Locker { static asHex: boolean; static instance: Locker; serialLockerCmdMaker(cmd: Uint8Array): Uint8Array; serialLockerHexCmd(command: Uint8Array): Array<string>; validateCell(cell?: number | string): number; serialLockerGetStatusCellCmd({ cell, channel, }?: cellChannelType): Uint8Array | Array<string>; serialLockerGetLightScanCmd({ since, until, channel }?: { since?: number | undefined; until?: number | undefined; channel?: number | undefined; }): Uint8Array | Array<string>; parseCellToColumnRow(cell: number): [number, number]; serialLockerGetConfigureCellCmd({ enable, column, row, channel, }?: { enable?: boolean | undefined; column?: number | undefined; row?: number | undefined; channel?: number | undefined; }): Uint8Array | Array<string>; serialLockerGetOpenCmd({ cell, channel }?: cellChannelType): Uint8Array | Array<string>; build(data: Uint8Array): Uint8Array | Array<string>; static connection({ channel }?: { channel?: number | undefined; }): Uint8Array | Array<string>; static openCell({ cell, channel }?: cellChannelType): Uint8Array | Array<string>; static statusCell({ cell, channel }?: cellChannelType): Uint8Array | Array<string>; static lightScan({ since, until, channel }?: { since?: number | undefined; until?: number | undefined; channel?: number | undefined; }): Uint8Array | Array<string>; static enableCell({ cell, channel }?: cellChannelType): Uint8Array | Array<string>; static disableCell({ cell, channel }?: cellChannelType): Uint8Array | Array<string>; } export { Locker }; //# sourceMappingURL=locker.d.ts.map