import { z } from 'zod'; export declare const CONFIG_DIR: string; export declare const CONFIG_FILE: string; export declare const DEFAULT_DATABASE_PATH: string; export interface ProjectConfig { path: string; name: string; } export interface ModelConfig { id: string; name?: string; } declare const configSchema: z.ZodObject<{ feishuAppId: z.ZodString; feishuAppSecret: z.ZodString; adminUserIds: z.ZodDefault>; allowAllUsers: z.ZodDefault; databasePath: z.ZodDefault; logLevel: z.ZodDefault>; projects: z.ZodDefault>>; defaultModel: z.ZodOptional; availableModels: z.ZodDefault; }, z.core.$strip>>>; }, z.core.$strip>; export type Config = z.infer; export interface CliOverrides { model?: string; project?: string; logLevel?: 'debug' | 'info' | 'warn' | 'error'; configFile?: string; } /** 优先级:CLI 参数 > 环境变量 > 配置文件 > 默认值 */ export declare function loadConfig(overrides?: CliOverrides): Config; export declare function getAdminUserIds(config: Config): string[]; export declare function getDefaultProjectPath(override?: string): string; export declare function getDefaultModel(config: Config): string | undefined; export declare function getProjects(config: Config): ProjectConfig[]; export declare function getAvailableModels(config: Config): ModelConfig[]; export declare function filterModels(allModels: T[], configuredModels: ModelConfig[]): T[]; export {}; //# sourceMappingURL=config.d.ts.map