surgio
Version:
Generating rules for Surge, Clash, Quantumult like a PRO
12 lines (11 loc) • 583 B
TypeScript
import { CustomProviderConfig, VmessNodeConfig } from '../types';
import Provider from './Provider';
import { GetNodeListFunction, GetNodeListParams, GetNodeListV2Function } from './types';
export default class CustomProvider extends Provider {
readonly nodeList: unknown[] | ((params: GetNodeListParams) => Promise<unknown[]>);
readonly underlyingProxy?: string;
constructor(name: string, config: CustomProviderConfig);
getNodeList: GetNodeListFunction;
getNodeListV2: GetNodeListV2Function;
prepareVmessNodeConfig(node: VmessNodeConfig): VmessNodeConfig;
}