import { FetchResponse, PostEntity, PostParams } from '@10up/headless-core'; import { FetchHookOptions } from '@10up/headless-core/react'; /** * The usePost hook. Returns a single post entity * * In order to automatically map URL params create a catch-all route named `[...path].js`. * You can create the catch-all at any level e.g: `pages/[...path].js`, `pages/blog/[...path].js`, etc. * * The `pages/[...path].js` route for instance would yield a URL like this: `/post-slug`, `/2020/01/01/post-slug`, etc. * * @param params The parameters accepted by the hook * @param options Options for the SWR configuration * * @category Data Fetching Hooks */ export declare function usePost(params?: Partial

, options?: FetchHookOptions>): import("@10up/headless-core/react").usePostResponse; /** * @internal */ export declare namespace usePost { const fetcher: (sourceUrl?: string | undefined, defaultParams?: P | undefined) => import("@10up/headless-core").SinglePostFetchStrategy; }