drawBorder.d.ts 1.1 KB

1234567891011121314151617181920212223242526
  1. import type { DrawVerticalLine } from './types/api';
  2. import type { TableConfig, SeparatorGetter, TopBorderConfig, JoinBorderConfig, BottomBorderConfig } from './types/internal';
  3. declare type Separator = {
  4. readonly left: string;
  5. readonly right: string;
  6. readonly body: string;
  7. readonly join: string;
  8. };
  9. declare const drawBorder: (columnWidths: number[], config: {
  10. separator: Separator;
  11. drawVerticalLine: DrawVerticalLine;
  12. }) => string;
  13. declare const drawBorderTop: (columnWidths: number[], config: {
  14. border: TopBorderConfig;
  15. drawVerticalLine: DrawVerticalLine;
  16. }) => string;
  17. declare const drawBorderJoin: (columnWidths: number[], config: {
  18. border: JoinBorderConfig;
  19. drawVerticalLine: DrawVerticalLine;
  20. }) => string;
  21. declare const drawBorderBottom: (columnWidths: number[], config: {
  22. border: BottomBorderConfig;
  23. drawVerticalLine: DrawVerticalLine;
  24. }) => string;
  25. export declare const createTableBorderGetter: (columnWidths: number[], config: TableConfig) => SeparatorGetter;
  26. export { drawBorder, drawBorderBottom, drawBorderJoin, drawBorderTop, };