import { TextDecoder } from "node:util"; export interface OutputDecoder { decode(chunk?: Uint8Array | ArrayBuffer | null, options?: { stream?: boolean; }): string; } export declare function resolveShellOutputEncoding(platform?: NodeJS.Platform, env?: NodeJS.ProcessEnv): string; export declare function createShellOutputDecoder(encoding?: string): OutputDecoder; export declare function decodeShellOutputChunk(decoder: OutputDecoder | TextDecoder, chunk?: Buffer, end?: boolean): string;