File size: 1,027 Bytes
bc20498 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
/// <reference types="svelte" />
/// <reference types=".pnpm/[email protected]/node_modules/svelte" />
/**
* Hook for getting the current nodes from the store.
*
* @public
* @returns store with an array of nodes
*/
export declare function useNodes(): {
subscribe: (this: void, run: import("svelte/store").Subscriber<import("..").Node[]>) => import("svelte/store").Unsubscriber;
update: (this: void, updater: import("svelte/store").Updater<import("..").Node[]>) => void;
set: (this: void, value: import("..").Node[]) => import("..").Node[];
setDefaultOptions: (opts: Partial<Omit<import("..").Node<Record<string, unknown>, string>, "id">>) => void;
setOptions: (opts: import("../store/utils").NodeStoreOptions) => void;
};
/**
* Hook for getting the current edges from the store.
*
* @public
* @returns store with an array of edges
*/
export declare function useEdges(): import("svelte/store").Writable<import("..").Edge[]> & {
setDefaultOptions: (opts: import("..").DefaultEdgeOptions) => void;
};
|