import { SpanRecord } from "../exporters/types.js"; //#region src/replay/log.d.ts /** * Read every span record from a JSONL trace log. Lines that fail to parse are * skipped (the iterator keeps going); the generator only ever yields parsed * {@link SpanRecord} values, never `null`. * * @stable */ declare function getTraceLog(filePath: string): AsyncIterable; /** * Configuration shape for {@link pruneTraces}. * * @stable */ interface PruneTracesOptions { /** Root directory housing the JSONL files. */ readonly root: string; /** Files older than `olderThanDays` are deleted. `0` keeps every file. */ readonly olderThanDays: number; /** * Wall clock used to compute the threshold. Defaults to `Date.now`. * * @internal */ readonly now?: () => number; } /** * Remove every JSONL file that is older than the configured retention * window. Returns the deleted files for caller-side accounting. * * @stable */ declare function pruneTraces(opts: PruneTracesOptions): Promise>; //#endregion export { PruneTracesOptions, getTraceLog, pruneTraces }; //# sourceMappingURL=log.d.ts.map