UNPKG

@teaui/core

Version:

A high-level terminal UI library for Node

22 lines (21 loc) 789 B
import type { Viewport } from '../Viewport.js'; import type { Props as ViewProps } from '../View.js'; import { View } from '../View.js'; import { Size } from '../geometry.js'; import { type Orientation } from '../types.js'; type Border = 'single' | 'leading' | 'trailing' | 'bold' | 'dash' | 'dash2' | 'dash3' | 'dash4' | 'double'; interface Props extends ViewProps { direction: Orientation; padding?: number; border?: Border; } export declare class Separator extends View { #private; static horizontal(props?: Omit<Props, 'direction'>): Separator; static vertical(props?: Omit<Props, 'direction'>): Separator; constructor(props: Props); update(props: Props): void; naturalSize(available: Size): Size; render(viewport: Viewport): void; } export {};