import { CamCmdMagic, type CamUsbCommand } from "./enum.js"; /** * Command header is 8 bytes of little endian u16 values. * * | index | field | value | * |-------|-------------|--------------------------------------| * | 0 | magic | {@link CamCmdMagic} | * | 2 | body size | count u16 values in body | * | 4 | command | {@link CamUsbCommand} | * | 6 | tag | request-response identifier 0 to 255 | * */ export declare class CamCommandHeader extends DataView { get magic(): number; get bodySize(): number; get command(): CamUsbCommand; get tag(): number; constructor(buffer: C, init?: readonly [ magic: number, bodySize: number, command: number, tag: number ]); } /** * Command body is a big endian u16 array containing the command payload. * * | command | request format | response format | * |--------------------------------------|-----------------|-----------------| * | {@link CamUsbCommand.READ_REGISTER} | `[addr]` | `[ok, value]` | * | {@link CamUsbCommand.WRITE_REGISTER} | `[addr, value]` | `[ok]` | * | {@link CamUsbCommand.ZEROPLANE} . | *unimplemented* | *unimplemented* | * | {@link CamUsbCommand.REGISTRATION} | *unimplemented* | *unimplemented* | * | {@link CamUsbCommand.CMOS} | *unimplemented* | *unimplemented* | * */ export declare class CamCommandBody extends Uint16Array { constructor(buffer: C, sizeOrInit?: Uint16Array | number); } /** * Creates a buffer suitable as a parameter to `controlTransferOut`, or parses a * 0-index item in a batch from `controlTransferIn`. */ export declare class CamCommandBuffer extends ArrayBuffer { readonly header: CamCommandHeader; readonly body: CamCommandBody; constructor(optsOrRaw: ArrayBuffer | DataView | { magic?: CamCmdMagic; command: CamUsbCommand; tag: number; body: Uint16Array; }); } //# sourceMappingURL=command.d.ts.map