// Ambient declarations for the focused subpaths of the openclaw plugin SDK // that this plugin needs at compile time. // // We intentionally do NOT take a `dependencies` (or `devDependencies`) entry // on the openclaw npm package itself: openclaw is provided by the host // gateway at runtime, and listing it as a file:/.../openclaw devDep breaks // the installer's `npm install --omit=dev` step because npm/arborist trips // over openclaw's own (deeply nested) dependency graph. // // These declarations cover only what we use here. They are deliberately // permissive — the runtime contract is whatever the gateway hands us, and // we guard each api access with optional chaining or a fallback at call site. declare module 'openclaw/plugin-sdk/plugin-entry' { export function definePluginEntry void | Promise; }>(opts: T): T; } declare module 'openclaw/plugin-sdk/core' { export type OpenClawPluginApi = unknown; }