export declare const OPENCODE_PLUGIN_MARKER = "oh-my-plumb-opencode-plugin"; /** * Whether the OpenCode on this machine is v2. Both versions install a binary * named `opencode`, so the version is what tells them apart: the v2 installer * adds an `opencode2` alias and reports a 2.x `--version`, v1 reports 0.x. */ export declare const opencodeIsV2: () => boolean; /** * The plugin as shipped in the package. The installed file only points at it, * so an upgrade needs no reinstall. OpenCode discovers `plugins/*.js` and * `*.ts` only, so the installed file is `.js` whatever the package uses, and * it points at whichever version's module that version's loader accepts: * v1 wants the function in `oh-my-plumb.mjs`, v2 the `{ id, setup }` object in * `oh-my-plumb-v2.js`, and neither reads the other's. */ export declare const pluginSourcePath: () => string; /** Records `oh-my-plumb` in the npm `plugin` list OpenCode itself installs and updates; true when the list changed. Existing entries are left alone. Returns false on any write failure, so `init` keeps going. */ export declare const addOpencodePackagePlugin: () => boolean; export declare const installOpencodePlugin: (target: string) => void; export declare const uninstallOpencodePlugin: (target: string) => boolean; //# sourceMappingURL=opencodePlugin.d.ts.map