import { KeyedMutator } from 'swr'; import { AppEntity, AppSettingsStrategy, EndpointParams, FetchResponse } from '../../data'; import { FetchHookOptions, HookResponse } from './types'; export interface useAppSettingsResponse extends HookResponse { data: T; mutate: KeyedMutator>; } /** * The useAppSettings hook * * See {@link useAppSettings} * * @param params The list of params to pass to the fetch strategy. It overrides the ones in the URL. * @param options The options to pass to the swr hook. * * @category Data Fetching Hooks */ export declare function useFetchAppSettings(params?: P | {}, options?: FetchHookOptions>): useAppSettingsResponse; /** * @internal */ export declare namespace useFetchAppSettings { const fetcher: (sourceUrl?: string, defaultParams?: P) => AppSettingsStrategy; }