cjke-strings
Version:
a set of Chinese Japanese Korean and Emoji strings helpers
11 lines • 532 B
TypeScript
import { type SupportInfo } from './base.js';
export interface LimitResult {
toString(): string;
readonly result: string;
readonly remaining: string;
readonly width: number;
}
export declare function limitWidth(original: string, limit: number, supports?: SupportInfo): LimitResult;
export declare function chunkText(text: string, width: number, supports?: SupportInfo): string[];
export declare function boxText(text: string, width: number, supports?: SupportInfo): string[];
//# sourceMappingURL=limitWidth.d.ts.map