mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2026-04-18 08:00:31 +08:00
25 lines
445 B
TypeScript
25 lines
445 B
TypeScript
export interface SysproxyInfo {
|
|
enable: boolean
|
|
host: string
|
|
port: number
|
|
bypass: string
|
|
}
|
|
|
|
export interface AutoproxyInfo {
|
|
enable: boolean
|
|
url: string
|
|
}
|
|
|
|
export function triggerManualProxy(
|
|
enable: boolean,
|
|
host: string,
|
|
port: number,
|
|
bypass: string
|
|
): void
|
|
|
|
export function triggerAutoProxy(enable: boolean, url: string): void
|
|
|
|
export function getSystemProxy(): SysproxyInfo
|
|
|
|
export function getAutoProxy(): AutoproxyInfo
|