import type { ListContentType } from "../types/core"; import type { ListApiQueryResponseProps, PickRename, SetQueryProps } from "../types/global"; import { type UseFetchStateProps } from "./useFetch"; /** * Get a list of ContentTypes using the Griddo public API. * * @example * const [{ query }, setQuery] = useList() * setQuery(data) // `data` key from a `ReferenceField`. */ export declare function useList(): UseListReturn; export interface UseListSetUrlAction { queryUrl: string | undefined; extra: Record | undefined; } export type UseListSetQueryProps = SetQueryProps; export type UseListState = PickRename>>, "data", "query">; export type UseListReturn = [ UseListState, (setQuery: UseListSetQueryProps) => void ];