import type { OperationHandler } from '@directus/extensions'; export declare function getFlowManager(): FlowManager; export declare function closeFlowManager(): Promise; /** Owns Flow registration and execution for one immutable runtime configuration. */ export declare class FlowManager { private readonly onClose?; private isLoaded; private closing; private closed; private closePromise; private scheduleEnabled; private enabled; private operations; private triggerHandlers; private operationFlowHandlers; private webhookFlowHandlers; private reloadQueue; private envs; private activeExecutions; private messenger; private messengerSubscribed; private handleFlowMessage; constructor(onClose?: (() => void) | undefined); /** Fixes Flow policy before extensions may register operations; conflicting reconfiguration fails. */ configure(options?: { enabled?: boolean; schedule?: boolean; }): void; /** Runtime policy for callers that must skip Flow-only work; unconfigured managers count as enabled. */ get isEnabled(): boolean; /** Loads and subscribes only when the runtime allows Flows. */ initialize(options?: { enabled?: boolean; schedule?: boolean; }): Promise; /** Publishes a reload only for enabled runtimes; disabled runtimes remain inert. */ reload(): Promise; /** Registers an extension operation only when Flow execution is allowed. */ addOperation(id: string, operation: OperationHandler): void; removeOperation(id: string): void; /** Executes an operation-triggered Flow; disabled runtimes reject even direct calls. */ runOperationFlow(id: string, data: unknown, context: Record): Promise; /** Executes a webhook or manual Flow only when runtime policy permits it. */ runWebhookFlow(id: string, data: unknown, context: Record): Promise<{ result: unknown; cacheEnabled?: boolean; }>; private load; private unload; close(): Promise; private performClose; private executeFlow; private executeFlowInternal; private executeOperation; }