import { AppEntity, EndpointParams, FetchResponse } from '@10up/headless-core'; import { FetchHookOptions } from '@10up/headless-core/react'; /** * The useAppSettings hook * * ## Usage * * ```tsx * const { data, loading, error } = useAppSettings(); * * // check loading and error states * ``` * * ### Server-Side-Rendering or Static-Site-Generation * * ```tsx * export async function getServerSideProps(context) { * const useAppSettingsData = await fetchHookData(useAppSettings.fetcher(), context); * return addHookData([useAppSettingsData], {}); * } * ``` * * **Important**: You most likely want to fetch app settings on every route so * that you can access global settings and menus in your pages & components * * @param params The parameters accepted by the hook * @param options Options for the SWR configuration * * @category Data Fetching Hooks */ export declare function useAppSettings(params?: Partial

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