declare module 'ant:shell' { interface ShellOutput { stdout: Uint8Array & BufferMethods; stderr: Uint8Array & BufferMethods; exitCode: number; signalCode: string | null; text(): string; json(): T; arrayBuffer(): ArrayBuffer; bytes(): Uint8Array; blob(): Blob; lines(): string[]; } interface ShellPromise extends PromiseLike { catch( onRejected?: ((reason: unknown) => TResult | PromiseLike) | null ): Promise; finally(onFinally?: (() => void) | null): Promise; nothrow(): ShellPromise; text(): Promise; json(): Promise; arrayBuffer(): Promise; bytes(): Promise; blob(): Promise; lines(): Promise; } function $(strings: TemplateStringsArray, ...values: unknown[]): ShellPromise; }