File size: 773 Bytes
bc20498
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/// <reference types="svelte" />
/// <reference types=".pnpm/[email protected]/node_modules/svelte" />
import { type HandleConnection, type HandleType } from '@xyflow/system';
export type useHandleConnectionsParams = {
    type: HandleType;
    nodeId?: string;
    id?: string | null;
};
/**
 *  Hook to check if a <Handle /> is connected to another <Handle /> and get the connections.
 *
 * @public
 * @param param.nodeId
 * @param param.type - handle type 'source' or 'target'
 * @param param.id - the handle id (this is only needed if the node has multiple handles of the same type)
 * @returns an array with connections
 */
export declare function useHandleConnections({ type, nodeId, id }: useHandleConnectionsParams): import("svelte/store").Readable<HandleConnection[]>;