import type { Settings } from "./api/Settings"; import type { CspRequestResult } from "./main/csp/manager"; import type { UserThemeHeader } from "./main/themes"; import { IpcEvents } from "./shared/IpcEvents"; import type { IpcRes } from "./utils/types"; export declare function invoke(event: IpcEvents, ...args: any[]): Promise; export declare function sendSync(event: IpcEvents, ...args: any[]): T; declare const _default: { themes: { uploadTheme: (fileName: string, fileData: string) => Promise; deleteTheme: (fileName: string) => Promise; getThemesList: () => Promise; getThemeData: (fileName: string) => Promise; getSystemValues: () => Promise>; openFolder: () => Promise; }; updater: { getUpdates: () => Promise[]>>; update: () => Promise>; rebuild: () => Promise>; getRepo: () => Promise>; }; settings: { get: () => Settings; set: (settings: Settings, pathToNotify?: string) => Promise; openFolder: () => Promise; }; quickCss: { get: () => Promise; set: (css: string) => Promise; addChangeListener(cb: (newCss: string) => void): void; addThemeChangeListener(cb: () => void): void; openFile: () => Promise; openEditor: () => Promise; getEditorTheme: () => string; }; native: { getVersions: () => Partial; openExternal: (url: string) => Promise; getRendererCss: () => Promise; onRendererCssUpdate: (cb: (newCss: string) => void) => void; }; csp: { /** * Note: Only supports full explicit matches, not wildcards. * * If `*.example.com` is allowed, `isDomainAllowed("https://sub.example.com")` will return false. */ isDomainAllowed: (url: string, directives: string[]) => Promise; removeOverride: (url: string) => Promise; requestAddOverride: (url: string, directives: string[], callerName: string) => Promise; }; pluginHelpers: Record Promise>>; }; export default _default;