export interface PluginRunContext { jsonMode: boolean; print: (value: unknown) => void; } /** * Bind a plugin's error class once and get a factory for command `run` * handlers: each handler is wrapped in the shared error-to-exit-code * envelope (json/text failure output, exit 2 for config errors, 1 otherwise). */ export declare function createPluginRunner(runner: { configErrorClass?: new (message: string) => Error; }): (input: { command: string; label: string; fn: (context: C) => Promise | undefined | number; }) => (context: C) => Promise; export declare function wrapPluginRun(options: { command: string; label: string; jsonMode: boolean; print: (value: unknown) => void; configErrorClass?: new (message: string) => Error; fn: () => Promise | undefined | number; }): Promise; //# sourceMappingURL=plugin-error.d.ts.map