/** * Turning grep's output into found lines. * * The file name comes from the caller, not from the line: paths are expanded * before the search and grep runs on one file at a time, so a name with a * colon in it would only make the prefix ambiguous. */ /** One line of the answer: a match, or a neighbour shown alongside it */ export interface FoundLine { file: string; line: number; text: string; /** A neighbouring line brought in by the context option, not a match itself */ context: boolean; } /** * Found lines, in the order grep printed them. * * `dropLast` is for output the transport cut mid-line: the last line arrived * in half, and half a line handed over as a whole one is a quote of something * nobody wrote. */ export declare function parseGrepLines(output: string, file: string, options?: { dropLast?: boolean; }): FoundLine[];