mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-22 16:35:14 +00:00
27 lines
1.1 KiB
TypeScript
27 lines
1.1 KiB
TypeScript
import type { DrawVerticalLine } from './types/api';
|
|
import type { TableConfig, SeparatorGetter, TopBorderConfig, JoinBorderConfig, BottomBorderConfig } from './types/internal';
|
|
declare type Separator = {
|
|
readonly left: string;
|
|
readonly right: string;
|
|
readonly body: string;
|
|
readonly join: string;
|
|
};
|
|
declare const drawBorder: (columnWidths: number[], config: {
|
|
separator: Separator;
|
|
drawVerticalLine: DrawVerticalLine;
|
|
}) => string;
|
|
declare const drawBorderTop: (columnWidths: number[], config: {
|
|
border: TopBorderConfig;
|
|
drawVerticalLine: DrawVerticalLine;
|
|
}) => string;
|
|
declare const drawBorderJoin: (columnWidths: number[], config: {
|
|
border: JoinBorderConfig;
|
|
drawVerticalLine: DrawVerticalLine;
|
|
}) => string;
|
|
declare const drawBorderBottom: (columnWidths: number[], config: {
|
|
border: BottomBorderConfig;
|
|
drawVerticalLine: DrawVerticalLine;
|
|
}) => string;
|
|
export declare const createTableBorderGetter: (columnWidths: number[], config: TableConfig) => SeparatorGetter;
|
|
export { drawBorder, drawBorderBottom, drawBorderJoin, drawBorderTop, };
|