export type AmqExitCategory = "success" | "error" | "usage" | "not-found" | "timeout" | "context-mismatch" | "invalid-json" | "output-limit" | "cancelled" | "spawn-error" | "process-crash" | "cleanup-failed"; export interface AmqCliAdapterOptions { readonly binaryPath: string; readonly maxStdoutBytes?: number; readonly maxStderrBytes?: number; readonly bodyFileThresholdBytes?: number; readonly tempDirectory?: string; readonly env?: Readonly; } export interface AmqRunOptions { readonly cwd?: string; readonly env?: Readonly; readonly signal?: AbortSignal; readonly parse?: (value: unknown) => T; } export interface AmqCommandResult { readonly ok: boolean; readonly category: AmqExitCategory; readonly exitCode: number | null; readonly signal: NodeJS.Signals | null; readonly stdout: string; readonly stderr: string; readonly stdoutTruncated: boolean; readonly stderrTruncated: boolean; readonly json?: T; readonly jsonError?: Error; readonly processError?: Error; } /** * The sole process boundary for AMQ commands. * * It never invokes a shell, never infers routing identity, and always preserves * bounded stdout for callers to inspect even when AMQ exits nonzero. */ export declare class AmqCliAdapter { #private; constructor(options: AmqCliAdapterOptions); runJson(argv: readonly string[], options?: AmqRunOptions): Promise>; runJsonWithBody(argv: readonly string[], body: string, options?: AmqRunOptions): Promise>; } //# sourceMappingURL=amq-cli-adapter.d.ts.map