/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { MaybePromise } from "@matter/general"; import { ClusterId, EndpointNumber, EventId, EventNumber, Priority } from "@matter/types"; import { Occurrence } from "./Occurrence.js"; /** * Index entry associated with an event occurrence. */ export interface OccurrenceSummary { number: EventNumber; priority: Priority; endpointId: EndpointNumber; clusterId: ClusterId; eventId: EventId; } export declare function OccurrenceSummary(number: bigint, occurrence: Occurrence): OccurrenceSummary; /** * Backing store for {@link OccurrenceManager}. */ export interface EventStore { load(): MaybePromise; add(event: Occurrence): MaybePromise; get(number: EventNumber): MaybePromise; delete(number: EventNumber): MaybePromise; clear(options?: EventStore.ClearOptions): MaybePromise; close(): MaybePromise; } export declare namespace EventStore { interface ClearOptions { /** * Discard the stored occurrences but continue numbering after the numbers already used, also across a * restart. Without it the store numbers from 1 again, which is only correct where the node's life ends. * matter.js treats a factory reset as such an end, which the specification does not count as a restart. * * An implementation that ignores this option still compiles, and numbers from 1 again. * * @see {@link MatterSpecification.v161.Core} § 7.14.1.1 * @see {@link MatterSpecification.v161.Core} § 7.12.1 */ keepNumbering?: boolean; } } //# sourceMappingURL=EventStore.d.ts.map