import { Readable, TransformOptions } from 'node:stream'; declare enum Variant { None = 0, BranchHit = 1, BranchInstrumented = 2, BranchLocation = 3, Comment = 4, EndOfRecord = 5, FilePath = 6, FunctionAlias = 7, FunctionExecution = 8, FunctionHit = 9, FunctionInstrumented = 10, FunctionLeader = 11, FunctionLocation = 12, LineHit = 13, LineInstrumented = 14, LineLocation = 15, TestName = 16, Version = 17 } declare const defaultFieldNames: Readonly; type FlushedResults = [ParseResult, ...ParseResult[]]; interface ParseResult { done: boolean; incomplete: boolean; value: string[] | null; variant: V; } declare class LcovParser { private _buffer; private _offset; private readonly _chunks; private readonly _fields; private readonly _fieldsLength; constructor(fieldNames: FieldNames); private static _parseValue; private static _parseSlice; private static _defaultResult; write(chunk: Buffer): void; read(): ParseResult; flush(): FlushedResults; getCurrentBuffer(): Buffer | null; private _parseResult; private _matchFields; private _resetMatcher; } interface SharedOptions { fieldNames?: FieldNames; parser?: LcovParser; } interface Options extends SharedOptions { from: string | Readable | Buffer | ArrayBuffer; } interface SyncOptions extends SharedOptions { from: string | Buffer | ArrayBufferLike; } interface StreamOptions extends Omit { fieldNames?: FieldNames; parser?: LcovParser; } interface FieldNames { branchHit: string; branchInstrumented: string; branchLocation: string; comment: string; endOfRecord: string; filePath: string; functionAlias: string; functionExecution: string; functionHit: string; functionInstrumented: string; functionLeader: string; functionLocation: string; lineHit: string; lineInstrumented: string; lineLocation: string; testName: string; version: string; } export { LcovParser as L, Variant as V, defaultFieldNames as d }; export type { FieldNames as F, Options as O, ParseResult as P, StreamOptions as S, SyncOptions as a, FlushedResults as b };