import { GraphPinSpec, GraphSubPinSpec } from '../../types';
import { GraphMergeSpec } from '../../types/GraphMergeSpec';
import { GraphMergesSpec } from '../../types/GraphMergesSpec';
import { GraphSpec } from '../../types/GraphSpec';
import { GraphUnitSpec } from '../../types/GraphUnitSpec';
import { GraphUnitsSpec } from '../../types/GraphUnitsSpec';
import { IO } from '../../types/IO';
export declare const setSpec: ({ spec }: {
    spec: GraphSpec;
}) => GraphSpec;
export declare const setName: ({ name }: {
    name: string;
}, state: GraphSpec) => GraphSpec;
export declare const addUnit: ({ id, unit }: {
    id: string;
    unit: GraphUnitSpec;
}, state: GraphSpec) => GraphSpec;
export declare const addUnits: ({ units }: {
    units: GraphUnitsSpec;
}, state: GraphSpec) => GraphSpec;
export declare const removeUnits: ({ ids }: {
    ids: string[];
}, state: GraphSpec) => GraphSpec;
export declare const mergeUnits: ({ units }: {
    units: GraphUnitsSpec;
}, state: GraphSpec) => GraphSpec;
export declare const expandUnit: ({ unitId, spec }: {
    unitId: string;
    spec: GraphSpec;
}, state: GraphSpec) => GraphSpec;
export declare const collapseUnits: (unitIds: string[], state: GraphSpec) => GraphSpec;
export declare const removeUnitExposedTypePins: ({ id, type }: {
    id: string;
    type: IO;
}, state: GraphSpec) => GraphSpec;
export declare const removeUnitExposedPins: ({ id }: {
    id: string;
}, state: GraphSpec) => GraphSpec;
export declare const removeUnitMerges: ({ id }: {
    id: string;
}, state: GraphSpec) => GraphSpec;
export declare const removeUnit: ({ unitId }: {
    unitId: string;
}, state: GraphSpec) => GraphSpec;
export declare const addMerge: ({ mergeId, merge }: {
    mergeId: string;
    merge: GraphMergeSpec;
}, state: GraphSpec) => GraphSpec;
export declare const addPinToMerge: ({ mergeId, unitId, type, pinId, }: {
    mergeId: string;
    type: IO;
    unitId: string;
    pinId: string;
}, state: GraphSpec) => GraphSpec;
export declare const addMerges: ({ merges }: {
    merges: GraphMergesSpec;
}, state: GraphSpec) => GraphSpec;
export declare const removeMerge: ({ id }: {
    id: string;
}, state: GraphSpec) => GraphSpec;
export declare const mergeMerges: ({ a, b }: {
    a: string;
    b: string;
}, state: GraphSpec) => GraphSpec;
export declare const _removePinFromMerge: ({ id, unitId, type, pinId, }: {
    id: string;
    type: IO;
    unitId: string;
    pinId: string;
}, state: GraphSpec) => GraphSpec;
export declare const removePinFromMerge: ({ id, unitId, type, pinId, }: {
    id: string;
    type: IO;
    unitId: string;
    pinId: string;
}, state: GraphSpec) => GraphSpec;
export declare const isPinMerged: (state: GraphSpec, id: any, unitId: string, type: IO, pinId: string) => boolean;
export declare const coverPinSet: ({ pinId, type }: {
    pinId: string;
    type: IO;
}, state: GraphSpec) => GraphSpec;
export declare const coverPin: ({ pinId, type, subPinId, }: {
    pinId: string;
    type: IO;
    subPinId: string;
}, state: GraphSpec) => GraphSpec;
export declare const exposePinSet: ({ pinId, type, pin }: {
    pinId: string;
    type: IO;
    pin: GraphPinSpec;
}, state: GraphSpec) => GraphSpec;
export declare const exposePin: ({ pinId, type, subPinId, subPin, }: {
    pinId: string;
    type: IO;
    subPinId: string;
    subPin: GraphSubPinSpec;
}, state: GraphSpec) => GraphSpec;
export declare const exposeInputSet: ({ pinId, input }: {
    pinId: string;
    input: GraphPinSpec;
}, state: GraphSpec) => GraphSpec;
export declare const exposeInput: ({ pinId, subPinId, input, }: {
    pinId: string;
    subPinId: string;
    input: GraphSubPinSpec;
}, state: GraphSpec) => GraphSpec;
export declare const plugPin: ({ type, pinId, subPinId, subPinSpec, }: {
    type: IO;
    pinId: string;
    subPinId: string;
    subPinSpec: GraphSubPinSpec;
}, state: GraphSpec) => GraphSpec;
export declare const unplugInput: ({ pinId, subPinId, }: {
    pinId: string;
    subPinId: string;
}, state: GraphSpec) => GraphSpec;
export declare const unplugOutput: ({ pinId, subPinId, }: {
    pinId: string;
    subPinId: string;
}, state: GraphSpec) => GraphSpec;
export declare const unplugPin: ({ type, pinId, subPinId, }: {
    type: IO;
    pinId: string;
    subPinId: string;
}, state: GraphSpec) => GraphSpec;
export declare const coverInputSet: ({ pinId }: {
    pinId: string;
}, state: GraphSpec) => GraphSpec;
export declare const coverInput: ({ pinId, subPinId, }: {
    pinId: string;
    subPinId: string;
}, state: GraphSpec) => GraphSpec;
export declare const exposeOutputSet: ({ pinId, output }: {
    pinId: string;
    output: GraphPinSpec;
}, state: GraphSpec) => GraphSpec;
export declare const exposeOutput: ({ pinId, subPinId, output, }: {
    pinId: string;
    subPinId: string;
    output: GraphSubPinSpec;
}, state: GraphSpec) => GraphSpec;
export declare const coverOutputSet: ({ pinId }: {
    pinId: string;
}, state: GraphSpec) => GraphSpec;
export declare const coverOutput: ({ pinId, subPinId, }: {
    pinId: string;
    subPinId: string;
}, state: GraphSpec) => GraphSpec;
export declare const setUnitErr: ({ unitId, err }: {
    unitId: string;
    err: string | null;
}, state: GraphSpec) => GraphSpec;
export declare const setPinSetName: ({ type, id, name }: {
    type: IO;
    id: string;
    name: string;
}, state: GraphSpec) => GraphSpec;
export declare const setPinSetId: ({ type, id, newId }: {
    type: IO;
    id: string;
    newId: string;
}, state: GraphSpec) => GraphSpec;
export declare const setPinSetFunctional: ({ type, pinId, functional }: {
    type: IO;
    pinId: string;
    functional: boolean;
}, state: GraphSpec) => GraphSpec;
export declare const setPinSetRef: ({ type, pinId, ref }: {
    type: IO;
    pinId: string;
    ref: boolean;
}, state: GraphSpec) => GraphSpec;
export declare const setUnitInput: ({ id, name, data }: {
    id: string;
    name: string;
    data: string;
}, state: GraphSpec) => GraphSpec;
export declare const setUnitOutput: ({ id, name, data }: {
    id: string;
    name: string;
    data: string;
}, state: GraphSpec) => GraphSpec;
export declare const setUnitPinData: ({ unitId, type, pinId, data, }: {
    unitId: string;
    type: IO;
    pinId: string;
    data: any;
}, state: GraphSpec) => GraphSpec;
export declare const setUnitInputConstant: ({ unitId, pinId, constant, }: {
    unitId: string;
    pinId: string;
    constant: boolean;
}, state: GraphSpec) => GraphSpec;
export declare const setUnitOutputConstant: ({ unitId, pinId, constant, }: {
    unitId: string;
    pinId: string;
    constant: boolean;
}, state: GraphSpec) => GraphSpec;
export declare const setUnitPinIgnored: ({ unitId, type, pinId, ignored, }: {
    unitId: string;
    type: IO;
    pinId: string;
    ignored: boolean;
}, state: GraphSpec) => GraphSpec;
export declare const setUnitOutputIgnored: ({ unitId, pinId, ignored, }: {
    unitId: string;
    pinId: string;
    ignored: boolean;
}, state: GraphSpec) => GraphSpec;
export declare const setUnitInputIgnored: ({ unitId, pinId, ignored, }: {
    unitId: string;
    pinId: string;
    ignored: boolean;
}, state: GraphSpec) => GraphSpec;
export declare const removeUnitPinData: ({ unitId, type, pinId }: {
    unitId: string;
    type: IO;
    pinId: string;
}, state: GraphSpec) => GraphSpec;
export declare const setMetadata: ({ path, value }: {
    path: string[];
    value: any;
}, state: GraphSpec) => GraphSpec;
export declare const setUnitMetadata: ({ id, path, value }: {
    id: string;
    path: string[];
    value: any;
}, state: GraphSpec) => GraphSpec;
export declare const renameUnitInMerges: (unitId: string, unitMerges: GraphMergesSpec, newUnitId: string) => GraphMergesSpec;
