import React from 'react'; import { QueryObserverResult } from 'react-query'; import { BaseRecord, GetOneResponse, SuccessErrorNotification, MetaDataQuery, LiveModeProps } from '../../interfaces'; export declare type useShowReturnType = { queryResult: QueryObserverResult>; showId?: string; setShowId: React.Dispatch>; }; export declare type useShowProps = { resource?: string; id?: string; metaData?: MetaDataQuery; } & LiveModeProps & SuccessErrorNotification; /** * `useShow` hook allows you to fetch the desired record. * It uses `getOne` method as query function from the dataProvider that is * passed to {@link https://refine.dev/docs/api-references/components/refine-config ``}. * * @see {@link https://refine.dev/docs/api-references/hooks/show/useShow} for more details. */ export declare const useShow: ({ resource: resourceFromProp, id, successNotification, errorNotification, metaData, liveMode, onLiveEvent, }?: useShowProps) => useShowReturnType;