import { PhpProgramCodemodResult } from '../codemods/types'; import { PhpProgramIngestionMessage, PhpProgramIngestionSource } from './programIngestion'; export interface DelimitedLinesResult { readonly remaining: string; readonly lines: string[]; } export interface FlushBufferedMessageResult { readonly remaining: string; readonly message?: PhpProgramIngestionMessage; readonly error?: unknown; } export declare function toAsyncIterable(source: PhpProgramIngestionSource): AsyncIterable; export declare function drainDelimitedLines(buffer: string): DelimitedLinesResult; export declare function flushBufferedMessage(buffer: string): FlushBufferedMessageResult; export declare function normaliseStringArray(value: unknown): readonly string[]; export declare function parseMessage(line: string): PhpProgramIngestionMessage; export declare function isPhpProgramIngestionPayload(payload: unknown): payload is PhpProgramIngestionMessage; export declare function isPhpProgramCodemodResult(value: unknown): value is PhpProgramCodemodResult;