import { type PortId, type GraphId, type Inputs, type NodeId, type Outputs, type ProcessId, type DataType, type DataValue, type ScalarDataType } from '@ironclad/rivet-core'; export type ProcessDataForNode = { processId: ProcessId; data: NodeRunDataWithRefs; }; export type RunDataByNodeId = { [nodeId: NodeId]: ProcessDataForNode[]; }; export type NodeRunDataBase = { startedAt?: number; finishedAt?: number; status?: { type: 'ok'; } | { type: 'error'; error: string; } | { type: 'running'; } | { type: 'interrupted'; } | { type: 'notRan'; reason: string; }; }; export type NodeRunData = NodeRunDataBase & { inputData?: Inputs; outputData?: Outputs; splitOutputData?: { [index: number]: Outputs; }; }; export type NodeRunDataWithRefs = NodeRunDataBase & { inputData?: InputsOrOutputsWithRefs; outputData?: InputsOrOutputsWithRefs; splitOutputData?: { [index: number]: InputsOrOutputsWithRefs; }; }; export type InputsOrOutputsWithRefs = { [portId: PortId]: DataValueWithRefs; }; export type DataValueWithRefs = { [P in DataType]: { type: P; value: P extends 'binary' | 'audio' | 'image' ? { ref: string; } : Extract['value']; }; }[DataType]; export type ScalarDataValueWithRefs = Extract; export declare const lastRunDataByNodeState: import("recoil").RecoilState; export declare const runningGraphsState: import("recoil").RecoilState; export declare const rootGraphState: import("recoil").RecoilState; export declare const lastRunData: (param: NodeId) => import("recoil").RecoilValueReadOnly; export declare const graphRunningState: import("recoil").RecoilState; export declare const graphStartTimeState: import("recoil").RecoilState; export declare const graphPausedState: import("recoil").RecoilState; export declare const selectedProcessPageNodesState: import("recoil").RecoilState>; export declare const selectedProcessPage: (param: NodeId) => import("recoil").RecoilState; //# sourceMappingURL=dataFlow.d.ts.map