import type { OutputFormat } from '../models/common'; import type { FormattableData } from './formatters/table'; /** Flags that determine which formatter to use */ export interface FormatFlags { json?: boolean; quiet?: boolean; format?: string; } /** * Resolve the effective output format from CLI flags. * --quiet takes precedence over --format and --json. * --json takes precedence over --format (default). * * @param flags - CLI format flags * @param isShowCommand - If true, default to 'markdown' and reject '--format table' * @throws CliShowFormatError if isShowCommand and --format table is requested * @throws CliFormatError if --format value is invalid */ export declare function selectFormat(flags: FormatFlags, isShowCommand?: boolean): OutputFormat; /** * Format data using the appropriate formatter. */ export declare function formatOutput(data: FormattableData, format: OutputFormat, entityType?: string, options?: { parentEntityId?: string; }): string; /** * Format an error for output. */ export declare function formatErrorOutput(err: Error, format: OutputFormat): string; //# sourceMappingURL=format-selector.d.ts.map