import type { Plugins, Workspace } from "obsidian"; import type { AsyncOrSync } from "ts-essentials"; import type { PluginContext } from "./plugin.js"; export declare function patchPlugin(context: PluginContext, id: I, patcher: (plugin: Plugins.Map) => AsyncOrSync<() => void>): Promise<() => void>; export declare function patchWindows(workspace: Workspace, patcher: (self0: Window & typeof globalThis) => (self0: Window & typeof globalThis) => void): () => void; //# sourceMappingURL=patch.d.ts.map