type IRPCResult = | { success: true, data: T } | { success: false, error: string } type IGetUploaderConfigListArgs = [type: string] type IDeleteUploaderConfigArgs = [type: string, configName: string] type ISelectUploaderConfigArgs = [type: string, configName: string] type IUpdateUploaderConfigArgs = [type: string, configId: string, config: IStringKeyMap] type ICopyUploaderConfigArgs = [type: string, configName: string, newConfigName: string] type IGetLatestVersionArgs = [isCheckBetaVersion: boolean] type IToolboxCheckArgs = [type: import('./enum').IToolboxItemType] type IOpenFileArgs = [filePath: string] type ICopyTextArgs = [text: string] type IShowDockIconArgs = [visible: boolean] type IShowMenubarIconArgs = [visible: boolean] type IShowNotificationArgs = [title: string, body: string, id?: string] type IGetGalleryMenuListArgs = [selectedList: IGalleryItem[]] interface IRPCServer { start: () => void stop: () => void use: (routes: IRPCRoutes) => void } type IRPCRoutes = Map> type IRPCHandler = (args: any[], event: import('electron').IpcMainEvent | import('electron').IpcMainInvokeEvent) => Promise interface IRPCRouter { add(action: import('./enum').IRPCActionType, handler: IRPCHandler): IRPCRouter routes: () => IRPCRoutes } type IToolboxChecker = (event: import('electron').IpcMainEvent | import('electron').IpcMainInvokeEvent) => Promise type IToolboxCheckerMap = { [type in T]: IToolboxChecker } type IToolboxFixMap = { [type in T]: IToolboxChecker } type IToolboxCheckRes = { type: import('./enum').IToolboxItemType status: import('./enum').IToolboxItemCheckStatus, msg?: string value?: any }