import { Specs } from '../types';
import { Dict } from '../types/Dict';
import { GraphSpec } from '../types/GraphSpec';
import { IOOf } from '../types/IOOf';
export 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];
