import { Core } from 'webserial-core'; interface Hoppers { levels: { id: number; currency: number; key: string; name: string; amount: number; capacity: number; }[]; balance: number; current: number | null; } interface ConstructorParams { filters?: SerialPortFilter[] | null; config_port?: SerialOptions; no_device?: number; device_listen_on_channel?: number | string; bypassSerialBytesConnection?: boolean; socket?: boolean; } export declare class Hopper extends Core { #private; __hoppers__: Hoppers; constructor({ filters, config_port, no_device, socket, }?: ConstructorParams); get balance(): number; get currentHopper(): number | null; get levels(): { id: number; currency: number; key: string; name: string; amount: number; capacity: number; }[]; setMaxCapacity({ hopper, capacity }?: { hopper?: number; capacity?: number; }): this; setHopperName({ hopper, name }?: { hopper?: number; name?: string; }): this; setHopperKey({ hopper, key }?: { hopper?: number; key?: string; }): this; setHopperCurrency({ hopper, currency }?: { hopper?: number; currency?: number; }): this; serialMessage(codex1: string[] | Uint8Array | string | ArrayBuffer): void; serialSetConnectionConstant(): number[]; sendConnect(): Promise; requestStatus(): Promise; readBalance(): Promise; clearBalance(): Promise; forceInvalid(): Promise; readHopper({ hopper }?: { hopper?: number; }): Promise; writeHopper({ hopper, quantity }?: { hopper?: number; quantity?: number; }): Promise; dispenseHopper({ hopper }?: { hopper?: number; }): Promise; dispenseChange({ change }?: { change?: number; }): Promise; configValidator({ enable, }?: { enable: boolean; }): Promise; disableValidator(): Promise; enableValidator(): Promise; change1x1({ hopper }?: { hopper?: number; }): Promise; sendCustomCode({ code, }?: { code: any; }): Promise; } export {}; //# sourceMappingURL=hopper.d.ts.map