import { GraphComponentSpec, GraphSubComponentSpec } from '../../types';
export type State = GraphComponentSpec;
export declare const appendChild: ({ unitId }: {
    unitId: string;
}, state: State) => State;
export declare const insertChild: ({ id, at }: {
    id: string;
    at: number;
}, state: State) => State;
export declare const removeChild: ({ id }: {
    id: any;
}, state: State) => State;
export declare const setSubComponent: ({ unitId, spec }: {
    unitId: string;
    spec: GraphSubComponentSpec;
}, state: State) => State;
export declare const removeSubComponent: ({ id }: {
    id: string;
}, state: State) => State;
export declare const setSize: ({ defaultWidth, defaultHeight, }: {
    defaultWidth: number;
    defaultHeight: number;
}, state: State) => State;
export declare const setChildren: ({ children }: {
    children: string[];
}, state: State) => State;
export declare const setSubComponentSize: ({ id, width, height }: {
    id: string;
    width: number;
    height: number;
}, state: State) => State;
export declare const setSubComponentChildren: ({ id, children }: {
    id: string;
    children: string[];
}, state: State) => State;
export declare const removeSubComponentChild: ({ id, childId }: {
    id: string;
    childId: string;
}, state: State) => State;
export declare const appendSubComponentChild: ({ id, childId }: {
    id: string;
    childId: string;
}, state: State) => State;
export declare const insertSubComponentChild: ({ id, childId, at }: {
    id: string;
    childId: string;
    at: number;
}, state: State) => State;
