import { ChatMessage } from "../index.js";
export type LineStream = AsyncGenerator<string>;
/**
 * Return the index of the first match and whether it is a perfect match
 * Also return a version of the line with correct indentation if needs fixing
 */
export declare function matchLine(newLine: string, oldLines: string[], permissiveAboutIndentation?: boolean): [number, boolean, string];
/**
 * Convert a stream of arbitrary chunks to a stream of lines
 */
export declare function streamLines(streamCompletion: AsyncGenerator<string | ChatMessage>): LineStream;
//# sourceMappingURL=util.d.ts.map