import { GraphSpec, Specs } from '../types';
import { Dict } from '../types/Dict';
import { IOOf, _IOOf } from '../types/IOOf';
export declare type GraphSpecSelection = {
    units?: string[];
    links?: _IOOf<Dict<string[]>>;
    merges?: string[];
    plugs?: IOOf<{
        pinId: string;
        subPinId: string;
    }[]>;
};
export declare function extractSubSpec(specs: Specs, spec: GraphSpec, selection: GraphSpecSelection, newUnitId: string, newSpecId: string): [GraphSpec, GraphSpec];
