import React from "react";
import { AutocorrectionType } from "./client";
type Range = [number, number];
interface RangeContextType {
    range: Range;
    setRange: (r: Range) => void;
    numberOfResults: number;
    setNumberOfResults: (n: number) => void;
    actuallyPage: number;
    setActuallyPage: (p: number) => void;
    resetPage: (pageSize?: number) => void;
    correction: AutocorrectionType | undefined | null;
    setCorrection: (c: AutocorrectionType | undefined | null) => void;
    overrideSearchWithCorrection: RangeContextProviderProps;
    setOverrideSearchWithCorrection: setterConnection;
}
export type RangeContextProviderProps = {
    isAutocorrection: boolean | null | undefined;
    renderingCorrection: boolean;
};
export type setterConnection = React.Dispatch<React.SetStateAction<{
    isAutocorrection: boolean | undefined | null;
    renderingCorrection: boolean;
}>>;
export declare const RangeProvider: React.FC<{
    children: React.ReactNode;
    defaultPageSize?: number;
}>;
export declare const useRange: () => RangeContextType;
export {};
