import type { QueriedData } from "../types/api-response-fields"; import type { PartiallyRequired } from "../types/utilities"; import { type UseListReturn, type UseListSetQueryProps } from "./useList"; export interface useListWithDefaultStaticPageProps extends Omit, "items">, "data"> { queriedData?: QueriedData; } /** * `useListWithDefaultStaticPage()` * * Hook to fetch a list of ContentTypes from the public API that returns the first page statically. * This way the build process will write the data into the HTML. * * @warning * Maybe you **don't want** to `use { mode: "list" }` in the schema options * * @example * const [{ query, isError, isFirstFetch, isLoading, msg }, setQuery] = * useListWithDefaultStaticPage({ * // This is de default query params for the first page * queriedData, * items: itemsPerPage, * page: 1, * fields: ["title", "id"], * }); * */ declare function useListWithDefaultStaticPage(props: useListWithDefaultStaticPageProps): UseListReturn; export { useListWithDefaultStaticPage };