#!/usr/bin/env tsx import { type ParsedArgs } from "./registry.js"; /** * Parse command line arguments */ export declare function parseArgs(args: string[]): ParsedArgs; /** * Wait until a writable stream has flushed its buffer. `process.exit()` discards * data still buffered for an async sink (a pipe or file), truncating large output * at the ~64 KB pipe buffer — so `chant graph --format ir` piped into a consumer * loses everything past 64 KB and its JSON won't parse. A TTY writes * synchronously (`writableLength` stays 0), so this is a no-op there. Resolves on * `error`/`close` too, so a reader that closes early (EPIPE) can't hang exit. * Exported for testing. */ export declare function waitForStreamDrain(stream: NodeJS.WriteStream): Promise; //# sourceMappingURL=main.d.ts.map