logkitten
Version:
Stream Android and iOS logs without Android Studio or Console.app, with programmatic Node.js API for log analysis.
25 lines • 747 B
TypeScript
/// <reference types="node" />
/// <reference types="node" />
/**
* LineBuffer handles streaming data that may arrive in chunks that split mid-line.
* It buffers incomplete lines until a newline is received.
*/
export declare class LineBuffer {
private buffer;
/**
* Process a chunk of data and return complete lines
* @param chunk - The incoming data chunk
* @returns Array of complete lines
*/
processChunk(chunk: string | Buffer): string[];
/**
* Get any remaining buffered content (call when stream ends)
* @returns The remaining buffered content or empty string
*/
flush(): string;
/**
* Clear the buffer
*/
clear(): void;
}
//# sourceMappingURL=line-buffer.d.ts.map