export interface ModuleRuntimeFetchResponse { ok: boolean; status: number; redirected?: boolean; headers?: Pick; json(): Promise; } export type ModuleRuntimeFetchLike = (input: string, init?: RequestInit) => Promise; export interface ModuleRuntimeStats { memoryPages: number; memoryBytes: number; maxMemoryPages: number; maxMemoryBytes: number; uptimeMs: number; hostRssBytes: number; invokeCount: number; errorCount: number; lastInvokeAt?: string; averageLatencyMs: number; timerRunCount: number; lastTimerStatus?: string; } export interface ModuleRuntimeMethod { methodId: string; displayName?: string; description?: string; inputPorts: ModuleRuntimePort[]; outputPorts: ModuleRuntimePort[]; maxBatch: number; drainPolicy?: string; } export interface ModuleRuntimePort { portId: string; displayName?: string; acceptedTypeSets: ModuleRuntimeAcceptedTypeSet[]; minStreams: number; maxStreams: number; required: boolean; description?: string; } export interface ModuleRuntimeAcceptedTypeSet { setId?: string; allowedTypes: ModuleRuntimeTypeRef[]; allowedWireFormats: string[]; description?: string; } export interface ModuleRuntimeTypeRef { schemaName?: string; fileIdentifier?: string; schemaVersion?: string; rootType?: string; } export interface ModuleRuntimeProtocol { protocolId: string; methodId?: string; inputPortId?: string; outputPortId?: string; description?: string; wireId?: string; transportKind?: string; role?: string; autoInstall: boolean; advertise: boolean; discoveryKey?: string; } export interface ModuleRuntimeTimer { timerId: string; methodId?: string; defaultIntervalMs: number; description?: string; } export interface ModuleRuntimeManifest { pluginId: string; name?: string; version?: string; pluginFamily?: string; methods: ModuleRuntimeMethod[]; capabilities: string[]; protocols: ModuleRuntimeProtocol[]; timers: ModuleRuntimeTimer[]; } export interface ModuleRuntimeOption { key: string; label: string; type: string; value?: string; description?: string; readOnly: boolean; units?: string; min?: number; max?: number; defaultValue?: string; restartRequired: boolean; persistence?: string; mutable: boolean; } export interface ModuleRuntimeScheduleConfig { enabled: boolean; interval?: string; cronExpression?: string; timezone?: string; jitter?: string; backoff?: string; retryBudget?: number; maxRuntime?: string; } export interface ModuleRuntimeScheduleRun { id: string; methodId: string; trigger: string; startedAt: string; finishedAt?: string; status: string; message?: string; outputSize?: number; } export interface ModuleRuntimeSchedule extends ModuleRuntimeScheduleConfig { methodId: string; description?: string; interval: string; timezone: string; timezoneDisplay?: string; utcDisplay?: string; minInterval?: string; intervalPresets: string[]; lastRunAt?: string; nextRunAt?: string; runHistory: ModuleRuntimeScheduleRun[]; } export interface ModuleRuntimeAction { actionId: string; label: string; description?: string; enabled: boolean; destructive: boolean; } export interface ModuleRuntimeStatusEvent { status: string; message?: string; at?: string; } export interface ModuleRuntimeLinks { logsUrl?: string; eventsUrl?: string; } export interface ModuleRuntimeInputValue { methodId: string; portId: string; wireFormat?: string; encoding?: string; schemaName?: string; fileIdentifier?: string; schemaVersion?: string; rootType?: string; value?: string; updatedAt?: string; } export interface ModuleRuntimeCommandHistoryEntry { id: string; at: string; command: string; moduleId?: string; methodId?: string; portId?: string; status: string; summary?: string; inputValues: ModuleRuntimeInputValue[]; } export interface SaveModuleRuntimeInputValuesResult { moduleId: string; restartPending: boolean; inputValues: ModuleRuntimeInputValue[]; } export interface ModuleRuntimeCatalog { requiredScope?: string; contentType?: string; cacheControl?: string; bundleSha256?: string; sizeBytes?: number; signatureHex?: string; signerPubKeyHex?: string; uploadedAt?: string; } export interface ModuleRuntimeEntry { id: string; version?: string; status: string; statusMessage?: string; description?: string; manifest?: ModuleRuntimeManifest; stats: ModuleRuntimeStats; options: ModuleRuntimeOption[]; schedules: ModuleRuntimeSchedule[]; actions: ModuleRuntimeAction[]; statusHistory: ModuleRuntimeStatusEvent[]; links?: ModuleRuntimeLinks; catalog?: ModuleRuntimeCatalog; inputValues: ModuleRuntimeInputValue[]; restartPending: boolean; commandHistory: ModuleRuntimeCommandHistoryEntry[]; } export interface ModuleRuntimeSnapshot { generatedAt: string; count: number; modules: ModuleRuntimeEntry[]; } export declare function loadModuleRuntimeSnapshotFromServer(baseUrl: string, fetchImpl?: ModuleRuntimeFetchLike): Promise; export declare function updateModuleRuntimeOption(baseUrl: string, moduleId: string, optionKey: string, value: string, fetchImpl?: ModuleRuntimeFetchLike): Promise; export declare function saveModuleRuntimeInputValues(baseUrl: string, moduleId: string, values: ModuleRuntimeInputValue[], fetchImpl?: ModuleRuntimeFetchLike): Promise; export declare function saveModuleRuntimeSchedule(baseUrl: string, moduleId: string, methodId: string, config: ModuleRuntimeScheduleConfig, fetchImpl?: ModuleRuntimeFetchLike): Promise; export declare function runModuleRuntimeScheduleNow(baseUrl: string, moduleId: string, methodId: string, fetchImpl?: ModuleRuntimeFetchLike): Promise; export declare function runModuleRuntimeAction(baseUrl: string, moduleId: string, actionId: string, fetchImpl?: ModuleRuntimeFetchLike): Promise<{ ok: boolean; actionId: string; }>; export declare function emptyModuleRuntimeSnapshot(): ModuleRuntimeSnapshot; export declare function resolveSelectedModuleId(selectedId: string, modules: Array>): string; //# sourceMappingURL=modules.d.ts.map