surgio
Version:
Generating rules for Surge, Clash, Quantumult like a PRO
7 lines (6 loc) • 961 B
TypeScript
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 "customParams" | "customFilters" | "resolveHostname" | "surgeConfig" | "surfboardConfig" | "quantumultXConfig" | "clashConfig" | "binPath" | "artifacts" | "remoteSnippets" | "urlBase" | "upload" | "flags" | "gateway" | "checkHostname" | "proxyTestUrl" | "proxyTestInterval" | "internetTestUrl" | "internetTestInterval" | "analytics" | "cache" | "publicUrl" | "output" | "providerDir" | "templateDir" | "configDir">(key: T, value: CommandConfig[T]) => CommandConfig;
export declare const normalizeConfig: (cwd: string, userConfig: Partial<CommandConfigBeforeNormalize>) => CommandConfig;
export declare const validateConfig: (userConfig: Partial<CommandConfig>) => CommandConfigBeforeNormalize;