import type { MemoryAuditInitiatorSurface, MemoryId, MemoryScope } from "./memory-barrel.js";
export declare const MEMORY_AUDIT_EVENT_SCHEMA_VERSION: "1";
export declare const MEMORY_AUDIT_EVENT_SUMMARY_MAX_CHARS = 240;
export type MemoryAuditEventKind = "memory:proposed" | "memory:accepted" | "memory:rejected" | "memory:updated" | "memory:superseded" | "memory:pinned" | "memory:unpinned" | "memory:archived" | "memory:forgotten" | "memory:retrieved" | "memory:workflow-used";
export declare const MEMORY_AUDIT_EVENT_KINDS: readonly MemoryAuditEventKind[];
interface MemoryAuditEventEnvelope {
    readonly schemaVersion: typeof MEMORY_AUDIT_EVENT_SCHEMA_VERSION;
    readonly eventId: string;
    readonly occurredAt: number;
    readonly initiatorSurface: MemoryAuditInitiatorSurface;
    readonly summary: string;
}
export type MemoryAuditEvent = (MemoryAuditEventEnvelope & {
    readonly kind: "memory:proposed";
    readonly memoryId: MemoryId;
    readonly scope: MemoryScope;
}) | (MemoryAuditEventEnvelope & {
    readonly kind: "memory:accepted";
    readonly memoryId: MemoryId;
    readonly scope: MemoryScope;
}) | (MemoryAuditEventEnvelope & {
    readonly kind: "memory:rejected";
    readonly memoryId: MemoryId;
    readonly scope: MemoryScope;
}) | (MemoryAuditEventEnvelope & {
    readonly kind: "memory:updated";
    readonly memoryId: MemoryId;
    readonly scope: MemoryScope;
}) | (MemoryAuditEventEnvelope & {
    readonly kind: "memory:superseded";
    readonly oldMemoryId: MemoryId;
    readonly newMemoryId: MemoryId;
    readonly scope: MemoryScope;
}) | (MemoryAuditEventEnvelope & {
    readonly kind: "memory:pinned";
    readonly memoryId: MemoryId;
    readonly scope: MemoryScope;
}) | (MemoryAuditEventEnvelope & {
    readonly kind: "memory:unpinned";
    readonly memoryId: MemoryId;
    readonly scope: MemoryScope;
}) | (MemoryAuditEventEnvelope & {
    readonly kind: "memory:archived";
    readonly memoryId: MemoryId;
    readonly scope: MemoryScope;
}) | (MemoryAuditEventEnvelope & {
    readonly kind: "memory:forgotten";
    readonly memoryId: MemoryId;
    readonly scope: MemoryScope;
    readonly tombstoned: boolean;
}) | (MemoryAuditEventEnvelope & {
    readonly kind: "memory:retrieved";
    readonly scopes: readonly MemoryScope[];
    readonly matchedMemoryIds: readonly MemoryId[];
}) | (MemoryAuditEventEnvelope & {
    readonly kind: "memory:workflow-used";
    readonly workflowRunId: string;
    readonly usedMemoryIds: readonly MemoryId[];
});
export {};
//# sourceMappingURL=memory-audit-events.d.ts.map