UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

10 lines 1.37 kB
import { EntityBundleRow } from '../EntityTreeTable'; import { TreeNode } from './useEntityTreeState'; import { SortBy, Direction } from '@sage-bionetworks/synapse-types'; export declare const useTreeOperationsWithDirectFetch: (expanded: Record<string, boolean>, setExpanded: (value: React.SetStateAction<Record<string, boolean>>) => void, tree: Record<string, TreeNode>, setTree: (value: React.SetStateAction<Record<string, TreeNode>>) => void, loadedChildren: Set<string>, setLoadedChildren: (value: React.SetStateAction<Set<string>>) => void, loadingIds: Set<string>, setLoadingIds: (value: React.SetStateAction<Set<string>>) => void, setNextPageTokens: (value: React.SetStateAction<Record<string, string | undefined>>) => void, setLoadingPageTokens: (value: React.SetStateAction<Record<string, string | undefined>>) => void, loadingPageTokens: Record<string, string | undefined>, nextPageTokens: Record<string, string | undefined>, sortBy?: SortBy, sortDirection?: Direction) => { handleToggleExpanded: (entityId: string) => Promise<void>; handleChildrenLoaded: (entityId: string, children: TreeNode[], nextPageToken?: string) => void; loadMoreChildren: (entityId: string, pageToken?: string) => Promise<void>; flattenTree: (nodeId: string, visited?: Set<string>) => EntityBundleRow[]; }; //# sourceMappingURL=useTreeOperationsWithDirectFetch.d.ts.map