import type { IssuePhase, StoredIssue } from '../job/types.js'; import type { ImportIssue } from '../types.js'; /** * Collects the problems between two heartbeats. It keeps at most `max` for a * phase (ยง 8.4, Issues): the rest are not kept, and `truncated` says so, with * `firstUnlistedRow`, the lowest row number among them; the totals per code are * counted elsewhere, so they are right above the cap. */ export declare class IssueSink { private readonly phase; private readonly max; truncated: boolean; firstUnlistedRow: number | null; private pending; private stored; private storedFileLevel; constructor(phase: IssuePhase, max: number); add(issue: ImportIssue, key: string | null): void; /** What has been added since the last call. */ take(): StoredIssue[]; /** Gives back what `take` returned, when it could not be written. */ restore(issues: StoredIssue[]): void; }