UNPKG

@herbertgao/surgio

Version:

Generating rules for Surge, Clash, Quantumult like a PRO

7 lines (6 loc) 567 B
import { CommandConfig, CommandConfigBeforeNormalize } from './types'; export declare const loadConfig: (cwd: string, override?: Partial<CommandConfig>) => CommandConfig; export declare const getConfig: () => CommandConfig; export declare const setConfig: <T extends keyof CommandConfig>(key: T, value: CommandConfig[T]) => CommandConfig; export declare const normalizeConfig: (cwd: string, userConfig: Partial<CommandConfigBeforeNormalize>) => CommandConfig; export declare const validateConfig: (userConfig: Partial<CommandConfig>) => CommandConfigBeforeNormalize;