import React from "react"; import { QueryObserverResult, UseQueryOptions } from "@tanstack/react-query"; import { BaseRecord, GetOneResponse, SuccessErrorNotification, MetaDataQuery, LiveModeProps, BaseKey, HttpError } from "../../interfaces"; export declare type useShowReturnType = { queryResult: QueryObserverResult>; showId?: BaseKey; setShowId: React.Dispatch>; }; export declare type useShowProps = { /** * Resource name for API data interactions * @default Reads `:resource` from the URL */ resource?: string; /** * Data item ID for API data interactions * @default Reads `:id` from the URL */ id?: BaseKey; /** * react-query's [useQuery](https://tanstack.com/query/v4/docs/reference/useQuery) options */ queryOptions?: UseQueryOptions, HttpError>; /** * Additional meta data to pass to the data provider's `getOne` */ metaData?: MetaDataQuery; /** * Target data provider name for API call to be made * @default `"default"` */ dataProviderName?: string; } & 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/core/hooks/show/useShow} for more details. */ export declare const useShow: ({ resource: resourceFromProp, id, successNotification, errorNotification, metaData, liveMode, onLiveEvent, dataProviderName, queryOptions, }?: useShowProps) => useShowReturnType; //# sourceMappingURL=useShow.d.ts.map