import { BaseCommand } from '../oclif/base-command.js'; import { sanitizeCell } from '../lib/cell-format.js'; import { type ManagedListRow } from '../../managed/index.js'; import type { CliLang } from '../lib/i18n.js'; /** CJK 全角字符 + 星平面 emoji 按 2 列计宽,使含中文表头 / emoji 标记(如 🔬)的列也能对齐。 * 逐**码点**迭代(for...of),星平面 emoji 是单码点,加 `\u{1F300}-\u{1FAFF}`(含 🔬 U+1F52C)判 2 列。 * 注:`⚠️` 是「U+26A0 + U+FE0F」两码点、各 1 列合计 2,本就与 2 列渲染对齐,不另判(避免重复计数); * `✓`(U+2713)终端按 1 列渲染、保持 1。 */ export declare function dispWidth(s: string): number; /** 按**显示宽度**截断(不是 code unit):逐码点累加 dispWidth,绝不切断 surrogate 对、CJK 也不溢出列。 */ export declare function truncate(s: string, max: number): string; export { sanitizeCell }; export declare function renderTable(rows: ManagedListRow[], lang: CliLang): string; export default class List extends BaseCommand { static description: string; static examples: { description: string; command: string; }[]; static flags: { lang: import("@oclif/core/interfaces").OptionFlag; global: import("@oclif/core/interfaces").BooleanFlag; json: import("@oclif/core/interfaces").BooleanFlag; }; run(): Promise; }