import { Entity, EntityCollection, User } from "../../types"; /** * @group Hooks and utilities */ export interface EntityFetchProps, UserType extends User = User> { path: string; entityId?: string; collection: EntityCollection; useCache?: boolean; } /** * @group Hooks and utilities */ export interface EntityFetchResult> { entity?: Entity; dataLoading: boolean; dataLoadingError?: Error; } /** * This hook is used to fetch an entity. * It gives real time updates if the datasource supports it. * @param path * @param collection * @param entityId * @param useCache * @group Hooks and utilities */ export declare function useEntityFetch, UserType extends User>({ path: inputPath, entityId, collection, useCache }: EntityFetchProps): EntityFetchResult;