/** * 对 API Key 做脱敏显示 */ export declare function maskApiKey(apiKey: string | undefined): string; /** * 从列表中选一项(含空判断),支持取消/返回 * @returns 选中项的值,或 null(取消/返回时) */ export declare function selectFromList(items: T[], options: { message: string; getName: (item: T) => string; getValue: (item: T) => string; emptyMessage?: string; withBack?: boolean; backLabel?: string; }): Promise; /** * 从列表中选择一项,之后选择对其执行的操作 * 返回 { item, action } 或 null(无数据或取消时) */ export declare function selectItemAndAction(items: T[], options: { getName: (item: T) => string; getValue: (item: T) => string; getDetails: (item: T) => string[]; actions: Array<{ name: string; value: string; }>; emptyMessage: string; selectMessage?: string; }): Promise<{ item: T; action: string; } | null>; /** * 确认操作 */ export declare function confirmAction(message: string, defaultVal?: boolean): Promise; export declare const SEPARATOR: string; export declare const SEPARATOR_LONG: string; //# sourceMappingURL=common.d.ts.map