import type { PropsWithChildren } from 'react'; import React from 'react'; import type { State as SearchState } from '../types'; import type { UseSearchInfiniteState } from './useInfiniteSearchState'; import type { UseSearchState } from './useSearchState'; export interface SearchContext extends UseSearchInfiniteState, UseSearchState { itemsPerPage: number; } export declare const Context: React.Context; type Props = SearchState & { onChange: (url: URL) => void; itemsPerPage: number; }; export declare const Provider: ({ children, itemsPerPage, onChange, ...rest }: PropsWithChildren) => React.JSX.Element; export {};