File size: 663 Bytes
bc20498 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
/// <reference types="svelte" />
/// <reference types=".pnpm/[email protected]/node_modules/svelte" />
import { type Readable } from 'svelte/store';
import type { Node } from '../types';
/**
* Hook for receiving data of one or multiple nodes
*
* @public
* @param nodeId - The id (or ids) of the node to get the data from
* @returns A readable store with an array of data objects
*/
export declare function useNodesData<NodeType extends Node = Node>(nodeId: string): Readable<Pick<NodeType, 'id' | 'data' | 'type'> | null>;
export declare function useNodesData<NodeType extends Node = Node>(nodeIds: string[]): Readable<Pick<NodeType, 'id' | 'data' | 'type'>[]>;
|