/** * Custom Actions runtime loader. * * Converts `CustomActionDef[]` from config into elizaOS `Action[]` objects * so the agent can use them in conversations. * * @module runtime/custom-actions */ import type { Action, IAgentRuntime } from "@elizaos/core"; import type { CustomActionDef } from "../config/types.milady"; /** * Store the runtime reference so we can hot-register actions later. * Called once from plugin.init(). */ export declare function setCustomActionsRuntime(runtime: IAgentRuntime): void; /** * Hot-register a CustomActionDef into the running agent. * Returns the elizaOS Action that was registered, or null if no runtime. */ export declare function registerCustomActionLive(def: CustomActionDef): Action | null; type ResolvedUrlTarget = { parsed: URL; hostname: string; pinnedAddress: string; }; type PinnedFetchInput = { url: URL; init: RequestInit; target: ResolvedUrlTarget; timeoutMs: number; }; type PinnedFetchImpl = (input: PinnedFetchInput) => Promise; export declare function __setPinnedFetchImplForTests(impl: PinnedFetchImpl | null): void; export declare function loadCustomActions(): Action[]; export declare function buildTestHandler(def: CustomActionDef): (params: Record) => Promise<{ ok: boolean; output: string; }>; export {}; //# sourceMappingURL=custom-actions.d.ts.map