import { BitValue, Event, Line } from 'libgpiod'; import { LineEvent, EventListener, EventType } from './events'; import { GPIOLineReservation } from './gpio-line-reservation'; import { Debouncer } from './debouncer'; export declare class GPIOInputLine extends GPIOLineReservation { private interval?; private emitter; constructor(line: Line, pollingInterval: number | undefined, releaseCallback: () => void); private propagateEvent; /** * Instantly poll kernel's events queue */ readEvents(): void; addListener(eventName: EventType, listener: EventListener): void; removeListener(eventName: EventType, listener: EventListener): void; once(eventName: EventType, listener: EventListener): void; /** * Wait for a new line event. * This method will poll the queue and propagate any previous events and wait for new one. * @param uSec maximum number of micro seconds to wait for an event * @param capture if true, the event will not be propagated to listeners */ wait(uSec: number, capture?: boolean): Event | null; getValue(): BitValue; createDebouncer(timeout: number, pressValue?: BitValue, holdTimes?: number[]): Debouncer; release(): void; } //# sourceMappingURL=gpio-input-line.d.ts.map