import { JDNode } from "./node"; import { JDService } from "./service"; import { Packet } from "./packet"; import { JDServiceMemberNode } from "./servicemembernode"; import { DecodedPacket } from "./pretty"; import { JDField } from "./field"; /** * A Jacdac event client. * @category JDOM */ export declare class JDEvent extends JDServiceMemberNode { private _lastReportPkt; private _fields; private _count; /** * @internal */ constructor(service: JDService, code: number); /** * Returns the ``EVENT_NODE_NAME`` identifier * @category JDOM */ get nodeKind(): string; /** * Gets the field node * @category Service Clients */ get fields(): JDField[]; /** * Gets the list of fields * @category JDOM */ get children(): JDNode[]; /** * Gets the raw data attached to the last event packet * @category Data */ get data(): Uint8Array; /** * Gets the unpacked data attached to the last event packet, if the event specification is known. * @category Data */ get unpackedValue(): import("./pack").PackedValues; /** * Gets a counter of occurences for this event. * @category Data */ get count(): number; /** * Gets the timestamp of the last packet with data received for this event. * @category Data */ get lastDataTimestamp(): number; /** * @internal */ get decoded(): DecodedPacket; /** * @internal */ processEvent(pkt: Packet): void; } //# sourceMappingURL=event.d.ts.map