import { A as ArcaClient } from './client-C7lhfLGY.js'; import { A as ArcaClientOptions, a as ArcaClientConfig } from './types-Su7QwloQ.js'; import { W as WsaaAuthModule } from './index-DAC3edtw.js'; import './padron.js'; import './constants.js'; import './wsfe.js'; import './fiscal-evidence-DaCyGd5o.js'; import './wsmtxca.js'; /** Minimal writable surface the CLI needs. Tests pass a string collector. */ type CliOutputStream = { write(chunk: string): void; isTTY?: boolean; }; /** Minimal readable surface the CLI needs for interactive prompts. */ type CliInputStream = NodeJS.ReadableStream & { isTTY?: boolean; }; /** Everything the CLI touches outside itself. Injected so tests stay offline. */ type CliIo = { stdout: CliOutputStream; stderr: CliOutputStream; stdin: CliInputStream; env: Record; cwd: string; /** Where the WSAA ticket is cached between runs. Never holds anything else. */ cacheDir: string; now(): Date; /** * Puts text in the system clipboard, answering whether it got there. Nothing * else in the CLI touches the clipboard, and a `false` is never an error. */ copyToClipboard(text: string): Promise; createClient(options: ArcaClientOptions): ArcaClient; createAuth(config: ArcaClientConfig): WsaaAuthModule; }; /** Runs one CLI invocation and returns its exit code. Never calls `exit`. */ declare function run(argv: readonly string[], io: CliIo): Promise; /** * Entry point used by `bin/facturas.mjs`. Sets the process exit code. Nothing * reaches node's unhandled rejection handler from here: whatever a command * failed to catch comes out as the SDK's safe message, never a stack or a PEM. */ declare function main(argv?: readonly string[], io?: CliIo): Promise; /** The real world: real streams, real env, the real SDK. */ declare function createDefaultIo(): CliIo; export { createDefaultIo, main, run };