#!/usr/bin/env node /** * Command-line entry point for TDC. * * Usage: * tdcv2 [-o ] [--seed ] [--count ] [--locale ] * tdcv2 --help * * With `-o` the generated content is written to the given path. * Without `-o` it is printed to stdout. * * This is a deliberately minimal CLI. The library API (`new TDC({...})`) * is the recommended embedding path; this CLI exists so users can run * TDC as a one-off against a standalone DSL file. */ /** * Stdout sink, as an overridable object so tests can capture it (a direct * `fs.writeSync` can't be spied — its module export isn't configurable). We * write SYNCHRONOUSLY to fd 1: async `process.stdout.write` both races * `process.exit` (truncating large piped output) and buffers unboundedly with * a slow reader, which would break the streaming engine's O(1) memory. */ export declare const cliIo: { writeStdout(data: string): void; }; /** * What to say when the config named on the command line is not there. * * Byte-identical in all five, because it is the same command with five front * ends and a reader who hits it in one must not get less help in the next. */ export declare function missingConfigMessage(file: string): string; export declare function main(argv: readonly string[]): Promise; export declare function isDirectInvocation(invokedPath?: string | undefined, moduleUrl?: string): boolean; //# sourceMappingURL=main.d.ts.map