import type { TaskAccess } from "./task-registry-shared.js";
import type { CheckpointSeat } from "./checkpoint-seat.js";
import type { WorkflowRunStore } from "./workflow-run-store.js";
import { type WorkflowParkWait, type WorkflowRun } from "../orchestration/workflow-types.js";
import { type RegistryCore, type RegisterWorkflowInput, type StopSource, type WorkflowTaskHandle, type UnifiedTaskResult } from "./task-registry-shared.js";
export declare function registerWorkflowLane(core: RegistryCore, input: RegisterWorkflowInput): string;
/** #5146 — the engine's answers for the parks a finished run made, read when both of the host's stores are at hand (the poll face
 *  carries them beside each parked row); nothing to read — a running run, no parked row, no checkpoint store, a poll already cancelled —
 *  or a chain that does not read leaves the rows with the record's word alone. The reads are bounded (one store bound for the chain,
 *  one for the cards, read together). */
export declare function workflowParkWaitsOf(run: WorkflowRun, runStore: WorkflowRunStore | undefined, seat: CheckpointSeat | undefined, signal?: AbortSignal): Promise<ReadonlyMap<string, WorkflowParkWait> | undefined>;
export declare function pollWorkflowLane(handle: WorkflowTaskHandle, access: TaskAccess, deadline?: number, signal?: AbortSignal, checkpointSeat?: CheckpointSeat): Promise<UnifiedTaskResult>;
/** `source` (the stop's initiator, already read) is handed to the run's cancel: the members its stop ends are `killed` by it. */
export declare function stopWorkflowLane(handle: WorkflowTaskHandle, source?: StopSource): Promise<UnifiedTaskResult>;
