/** * Opt-in telemetry writer for openlore. * * Gate: OPENLORE_TELEMETRY=1 (disabled by default). * Writes append-only JSONL to .openlore/telemetry/.jsonl. * Never throws — telemetry must not crash the hot path. * * Rotation: when a domain file exceeds ROTATE_THRESHOLD_BYTES, it is renamed * to .1.jsonl and older rotated files shifted (keeps MAX_ROTATED_FILES). */ /** Number of rotated archive files kept per domain (`.1.jsonl` … `.N.jsonl`). * Exported so readers that must span rotation (e.g. the panic accuracy gate) stay in lockstep. */ export declare const MAX_ROTATED_FILES = 5; /** * Emit a telemetry event to .openlore/telemetry/.jsonl. * * @param directory - project root (must be absolute) * @param domain - log file name without extension (e.g. 'mcp', 'cache', 'epistemic-lease') * @param payload - arbitrary fields merged with the timestamp */ export declare function emit(directory: string, domain: string, payload: Record): void; //# sourceMappingURL=telemetry.d.ts.map