frpc-desktop/types/global.d.ts

80 lines
1.7 KiB
TypeScript
Raw Normal View History

2024-08-16 23:59:40 +08:00
declare module 'element-plus/dist/locale/zh-cn.mjs' {
const zhLocale: any;
export default zhLocale;
}
declare module 'element-plus/dist/locale/en.mjs' {
const enLocale: any;
export default enLocale;
}
declare global {
/**
*
*/
type Proxy = {
_id: string;
name: string;
type: string;
localIp: string;
localPort: number;
remotePort: number;
customDomains: string[];
stcpModel: string;
serverName: string;
secretKey: string;
bindAddr: string;
bindPort: string;
};
/**
*
*/
type LocalPort = {
protocol: string;
ip: string;
port: number;
}
/**
*
*/
type FrpVersion = {
id: string;
name: string;
published_at: string;
download_completed: boolean;
absPath: string;
assets: Asset[]
};
/**
*
*/
type FrpConfig = {
currentVersion: string;
serverAddr: string;
serverPort: number;
authMethod: string;
authToken: string;
logLevel: string;
logMaxDays: number;
tlsConfigEnable: boolean;
tlsConfigCertFile: string;
tlsConfigKeyFile: string;
tlsConfigTrustedCaFile: string;
tlsConfigServerName: string;
proxyConfigEnable: boolean;
proxyConfigProxyUrl: string;
systemSelfStart: boolean;
systemStartupConnect: boolean;
user: string;
metaToken: string;
transportHeartbeatInterval: number;
transportHeartbeatTimeout: number;
};
}
export {};