UNPKG

surgio

Version:

Generating rules for Surge, Clash, Quantumult like a PRO

11 lines (10 loc) 518 B
import { CustomProviderConfig, VmessNodeConfig } from '../types'; import Provider from './Provider'; import { GetNodeListFunction, GetNodeListParams } 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; prepareVmessNodeConfig(node: VmessNodeConfig): VmessNodeConfig; }