/** * Shared helpers for app-specific tools. * * Provides config resolution, client caching, and automatic account lookup. */ import type { OpenClawPluginApi } from "openclaw/plugin-sdk"; import { MorphixClient } from "@morphixai/core"; export interface ResolvedConfig { apiKey: string; baseUrl?: string; } export declare function resolveConfig(api: OpenClawPluginApi): ResolvedConfig | null; /** * Resolve the account ID for a specific Pipedream app. * If `accountId` is provided, returns it directly. * Otherwise, looks up the first active account for the given app slug. */ export declare function resolveAppAccount(client: MorphixClient, appSlug: string, accountId?: string): Promise; export declare const API_KEY_GUIDE_URL = "https://morphix.app/api-keys"; export declare const CONNECTIONS_URL = "https://morphix.app/connections"; export declare const NO_API_KEY_ERROR: { error: string; setup_guide: string; }; export declare class AppNotConnectedError extends Error { readonly appSlug: string; constructor(appSlug: string); } /** * Wrap a tool execute function with standard error handling. */ export declare function wrapToolExecute(appSlug: string, fn: (client: MorphixClient, config: ResolvedConfig) => Promise): (api: OpenClawPluginApi) => Promise; //# sourceMappingURL=_tool-helpers.d.ts.map