import { getRegisteredAutomations as getRegisteredFromFile } from './registry.js'; import type { RunningAutomation } from './types.js'; export interface RuntimeOptions { scriptPath: string; id?: string; dryRun?: boolean; verbose?: boolean; pollIntervalMs?: number; /** Gateway port for webhook delivery. Falls back to OPENCLAW_GATEWAY_PORT or 18789 */ gatewayPort?: number; /** Hooks token for webhook auth. Falls back to OPENCLAW_HOOKS_TOKEN */ hooksToken?: string; /** Pre-seed state before the factory function runs (e.g. from --set key=value) */ initialState?: Record; /** * Enable WebSocket-first market/account data and events. REST is used for * initial static metadata, minute reconciliation, and automatic fallback * while the socket is unavailable. * @default true */ useWebSocket?: boolean; /** * Best-effort host idle-sleep inhibition for the lifetime of the automation. * Enabled by default for live runs and disabled by default for dry runs. */ keepAwake?: boolean; } export declare function getRunningAutomations(): RunningAutomation[]; export declare function getAutomation(id: string): RunningAutomation | undefined; /** Get all automations from file-based registry (cross-process visibility) */ export { getRegisteredFromFile as getRegisteredAutomations }; export declare function startAutomation(options: RuntimeOptions): Promise; //# sourceMappingURL=runtime.d.ts.map