import { KeyValueOptions, ListItem, ListOptions, TableOptions, TreeNode, TreeOptions } from "./primitives.mjs"; //#region src/output/output-indicator.d.ts /** * Runtime output helper injected into action context as `ctx.context.output`. * Provides format-aware output primitives (table, tree, list, key-value). * * Each method renders data using the resolved format (ANSI, text, JSON, markdown, HTML) * and writes it to the runtime's output function. */ type PadroneOutputIndicator = { /** Render data as a table. */table(data: Record[], options?: TableOptions): void; /** Render data as a tree. */ tree(data: TreeNode | TreeNode[], options?: TreeOptions): void; /** Render data as a list. */ list(data: ListItem[], options?: ListOptions): void; /** Render data as aligned key-value pairs. */ kv(data: Record, options?: KeyValueOptions): void; /** Write raw output (same as runtime.output but sets the "already called" flag). */ raw(...args: unknown[]): void; /** Whether any output method has been called. */ readonly called: boolean; }; /** Declarative output configuration for a command. */ type OutputPrimitiveType = 'table' | 'tree' | 'list' | 'kv' | 'json'; type OutputConfig = OutputPrimitiveType | { type: OutputPrimitiveType; options?: TableOptions | TreeOptions | ListOptions | KeyValueOptions; }; //#endregion export { OutputConfig, OutputPrimitiveType, PadroneOutputIndicator }; //# sourceMappingURL=output-indicator.d.mts.map