import { Entity, EntitySchema, EntitySchemaResolver } from "../../models"; /** * @category Hooks and utilities */ export interface EntityFetchProps { path?: string; entityId?: string; schema?: EntitySchema | EntitySchemaResolver; useCache?: boolean; } /** * @category 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 schema * @param entityId * @param useCache * @category Hooks and utilities */ export declare function useEntityFetch({ path, entityId, schema, useCache }: EntityFetchProps): EntityFetchResult;