/**
 * Bash stream processor — single-pass UTF-8 decode + ANSI strip + binary sanitization.
 *
 * Uses native Rust implementation when available, with JS fallbacks.
 */
export interface StreamState {
    utf8Pending: number[];
    ansiPending: number[];
}
export interface StreamChunkResult {
    text: string;
    state: StreamState;
}
export declare function processStreamChunk(chunk: Buffer, state?: StreamState): StreamChunkResult;
export declare function stripAnsiNative(text: string): string;
export declare function sanitizeBinaryOutputNative(text: string): string;
