/** * Copyright © INOVUA TRADING. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { TypeDataSource } from '../../types'; type DataPromiseResult = { data: any[]; count: number; }; type DataPromise = Promise; declare const useLoadDataEffect: ({ getDataSource, }: { getDataSource: ({ shouldReload, }: { shouldReload: boolean; }) => TypeDataSource; }, fn: (dataSource: TypeDataSource, { shouldReload, intercept, }: { shouldReload: boolean; intercept: (promise: DataPromise, dataToLoad: TypeDataSource) => DataPromise; }) => Promise, { reloadDeps, noReloadDeps }: { reloadDeps: any[]; noReloadDeps: any[]; }) => Promise; export default useLoadDataEffect;