//#region packages/terminal-core/src/table.d.ts
type Align = "left" | "right" | "center";
export type TableColumn = {
  key: string;
  header: string;
  align?: Align;
  minWidth?: number;
  maxWidth?: number;
  flex?: boolean;
};
export type RenderTableOptions = {
  columns: TableColumn[];
  rows: Array<Record<string, string>>;
  width?: number;
  padding?: number;
  border?: "unicode" | "ascii" | "none";
};
export declare function getTerminalTableWidth(minWidth?: number, fallbackWidth?: number): number;
/** Render untrusted single-line values without changing renderTable's trusted ANSI contract. */
export declare function renderTerminalSafeTable(opts: RenderTableOptions): string;
export declare function renderTable(opts: RenderTableOptions): string;
//#endregion