#!/usr/bin/env node import type { Stream } from "node:stream"; export type WritableStream = Stream & NodeJS.WritableStream; /** * CLI IO interface with stdout and stderr. */ export interface IO { stdout: WritableStream; stderr: WritableStream; } /** * Main function. * * @param args - The command line arguments (`process.argv.slice(2)`) * @param io - Optional custom stdout/stderr streams. Defaults to Node.js `process`. * @returns The exit code */ export declare function main(args: string[], io?: IO): Promise;