/** * Effect CLI output formatter for AXM. * * Effect CLI renders built-in help and version output through this string * formatter and its console. The formatter owns no styling, layout, or output * mode: every document it formats is the machine document, which the * application reads back and presents through the Screen (see * `built-in-output.ts`). Parse errors are not rendered here at all; the * application paints them from the parser's failure. */ import * as ServiceMap from "effect/Context"; import { CliOutput } from "effect/cli"; /** * Annotation key for "learn more" footer text. * Attach to commands via `Command.annotate(LearnMore, "...")`. */ export declare const LearnMore: ServiceMap.Reference; /** * Builds a `LEARN MORE` footer string from `axm help ` rows, with the * command column padded to a consistent width. Pass the result to * `Command.annotate(LearnMore, ...)`. The string is part of the machine help * document; {@link learnMoreRows} reads it back for the human view. */ export declare const formatLearnMore: (rows: ReadonlyArray) => string; export type LearnMoreRow = readonly [command: string, description: string]; /** * The heading and rows of a learn-more footer, read back from the string * {@link formatLearnMore} built: the inverse of its two row forms, so the * human view lays the rows out itself instead of printing the padded text. */ export declare const learnMoreRows: (learnMore: string) => { readonly title: string; readonly rows: ReadonlyArray; }; /** Creates the CLI output formatter: help and version as their machine documents. */ export declare const makeAxmFormatter: () => CliOutput.Formatter; //# sourceMappingURL=formatter.d.ts.map