import type { Buffer, Device } from '@antv/g-device-api'; import type { IBuffer, IBufferInitializationOptions } from '@antv/l7-core'; /** * Use Buffer from @antv/g-device-api */ export default class DeviceBuffer implements IBuffer { private buffer; private isDestroyed; private type; private size; constructor(device: Device, options: IBufferInitializationOptions); get(): Buffer; destroy(): void; subData({ data, offset, }: { data: number[] | number[][] | Uint8Array | Uint16Array | Uint32Array; offset: number; }): void; }