import type { RpcMethodParameters } from '@scayle/storefront-core';
import type { UseRpcOptions, UseRpcReturn, NormalizedRpcResponse, KeysOf, UseRpcCacheKey } from '../core/useRpc.js';
import type { MaybeRefOrGetter } from 'vue';
/**
 * Retrieves data for a single category by its path using the `getCategoryByPath` RPC method.
 *
 *  This function acts as a wrapper around the `useRpc` composable,
 * simplifying the process of fetching data. It internally calls `useRpc`
 * with the provided parameters and options.
 *
 * @see https://scayle.dev/en/api-guides/storefront-api/resources/categories/get-a-category
 *
 * @template DataT The type of the normalized RPC response data. Defaults to `NormalizedRpcResponse<'getCategoriesByPath'>`.
 * @template PickKeys The keys to pick from the data. Defaults to all keys of `DataT`.
 * @template DefaultT The default value to use if data is not available. Defaults to `null`.
 *
 * @param params An object containing parameters and options for the `getCategoryByPath` RPC call.
 * @param params.params The parameters for the `getCategoryByPath` RPC method.
 * @param params.options The options for the underlying `useRpc` call, controlling data handling and loading state.
 * @param key A unique key for this RPC call. Used internally by `useRpc` for caching and state management.
 *
 * @returns The result of the `useRpc` call, which includes the fetched data,
 *          loading state, and any error information.
 */
export declare function useCategoryByPath<DataT = NormalizedRpcResponse<'getCategoryByPath'>, PickKeys extends KeysOf<DataT> = KeysOf<DataT>, DefaultT = null>({ params, options, }: {
    params: MaybeRefOrGetter<RpcMethodParameters<'getCategoryByPath'>>;
    options?: UseRpcOptions<'getCategoryByPath', DataT, PickKeys, DefaultT>;
}, key?: UseRpcCacheKey): UseRpcReturn<'getCategoryByPath', DataT, PickKeys, DefaultT>;
