import type { OhPConfig } from "../types.js"; import type { EnvInfo } from "../utils/detect.js"; /** * 统计已有配置中指定目录下的文件数量。 * @param env - 环境信息 * @param dir - 目录名称前缀 * @returns 匹配的文件数 */ export declare function countExisting(env: EnvInfo, dir: string): number; /** * 展示配置摘要,处理已有配置的备份/覆盖,安装 pi(如需),并应用最终配置。 * @param config - 用户选择的配置对象 * @param env - 当前环境信息 */ export declare function confirmApply(config: OhPConfig, env: EnvInfo): Promise;