import type { Doc, Status, TableColumnPriority, Text } from "./doc.js"; export interface ViewColumn { readonly header: Text; readonly value: (row: T) => Text; readonly align?: "left" | "right"; readonly width?: number; readonly minWidth?: number; readonly priority?: TableColumnPriority; } export interface ViewField { readonly label: Text; readonly value: (row: T) => Text; } /** The status mark of a row that needs attention, or `undefined` for one that does not. */ type ViewRowMark = (row: T) => Status | undefined; export declare const tableDoc: (rows: ReadonlyArray, columns: ReadonlyArray>, options?: { readonly caption?: Text; readonly mark?: ViewRowMark; }) => Doc; export declare const fieldsDoc: (row: T, fields: ReadonlyArray>) => Doc; /** * An inventory: its rows as a table and the summary sentence after it, or — * when there is nothing to list — the empty state alone, which says what is * true and may name the one next step. */ export declare const inventoryDoc: (options: { readonly rows: ReadonlyArray; readonly columns: ReadonlyArray>; /** One sentence, or several parts the painter joins with its separator. */ readonly summary?: string | ReadonlyArray; readonly mark?: ViewRowMark; readonly empty: string | Doc; }) => Doc; export {}; //# sourceMappingURL=view.d.ts.map