import { Pane } from "./tweakpane";
import { Cancellable } from "@lincode/promiselikes";
import Appendable from "../../display/core/Appendable";
export type ConnectionDraggingItem = {
    manager: any;
    prop: string;
    xyz?: "x" | "y" | "z";
};
export type Connection = {
    onDragStart?: (e: DragEvent) => void;
    onDrag?: (e: DragEvent) => void;
    onDragEnd?: (e: DragEvent, draggingItem: ConnectionDraggingItem) => void;
    onDrop?: (e: DragEvent, draggingItem: ConnectionDraggingItem, prop: string) => void;
};
export declare const initConnectorIn: (connectorIn: HTMLElement, key: string, connection: Connection) => HTMLElement;
declare const _default: (handle: Cancellable, pane: Pane, title: string, target: Appendable, params: Record<string, any>, prepend?: boolean, connection?: Connection, toggle?: boolean) => Promise<{
    [k: string]: any;
}>;
export default _default;
