import * as plugins from '../../plugins.js'; import type { IOpsConfigEvent, IOpsConfigEventCursor, IOpsConfigEventContext, TOpsConfigEventSeverity } from '../../../dist_ts_interfaces/data/config-events.js'; export interface IOpsConfigEventFilter { acknowledged?: boolean; severity?: TOpsConfigEventSeverity; category?: string; limit?: number; cursor?: IOpsConfigEventCursor; } /** * Durable operator-facing platform configuration event (see * ts_interfaces/data/config-events.ts). Unacknowledged events persist * indefinitely; acknowledged events are pruned after a retention window. */ export declare class OpsConfigEventDoc extends plugins.smartdata.SmartDataDbDoc implements IOpsConfigEvent { id: string; severity: TOpsConfigEventSeverity; category: string; title: string; detail: string; context: IOpsConfigEventContext; createdAt: number; acknowledgedBy?: string; acknowledgedAt?: number; /** Sparse uniqueness authority for the current open occurrence. */ openDedupeKey?: string; constructor(); toApiObject(): IOpsConfigEvent; createSavableObject(): Promise; private static getNativeCollection; private static hydrate; static upsertOpenEvent(optionsArg: { id: string; openDedupeKey: string; severity: TOpsConfigEventSeverity; category: string; title: string; detail: string; context: IOpsConfigEventContext; createdAt: number; }): Promise<{ event: OpsConfigEventDoc; created: boolean; }>; static findFiltered(filter?: IOpsConfigEventFilter): Promise<{ events: OpsConfigEventDoc[]; total: number; nextCursor?: IOpsConfigEventCursor; }>; static countUnacknowledged(): Promise; /** Acknowledge the given event ids; returns how many were newly acknowledged. */ static acknowledgeByIds(ids: string[], userId: string): Promise; /** Delete acknowledged events older than the retention window. */ static pruneAcknowledged(maxAgeMs: number): Promise; }