import { AnyArray, RestApiHookState } from '../../../../../../shared/utils/utility-types';
import { DataChunk, HookExecutionStatus, RestApiHookParams, Slice, SliceableRestApiHook, UnsliceableParams } from '../../types.js';
type UseLoadDataFromInternalHookOptions<HookParams extends RestApiHookParams, DataKey extends string, SuccessDataType extends AnyArray, Hook extends SliceableRestApiHook<HookParams, DataKey, SuccessDataType>> = {
    hook: Hook;
    params: UnsliceableParams<HookParams>;
    sliceToLoad: Slice;
    dataKey: DataKey;
};
type UseLoadDataFromInternalHookResult<DataKey extends string, SuccessDataType extends AnyArray> = {
    dataChunk: DataChunk | null;
    hookExecutionStatus: HookExecutionStatus;
    dataLoadingError: Error | undefined;
    hookResultState: RestApiHookState<DataKey, SuccessDataType>;
};
export declare function useLoadDataFromInternalHook<HookParams extends RestApiHookParams, DataKey extends string, SuccessDataType extends AnyArray, Hook extends SliceableRestApiHook<HookParams, DataKey, SuccessDataType>>(options: UseLoadDataFromInternalHookOptions<HookParams, DataKey, SuccessDataType, Hook>): UseLoadDataFromInternalHookResult<DataKey, SuccessDataType>;
export {};
