import React from "react";
import { Config, ConfigCuration, ConfigRedirect, ReactivesearchResultProps } from "../types";
export type ReactifySearchMode = "search" | "collection" | "instant-search" | "curated-page";
export declare const ReactifySearchContext: React.Context<{
    config: Config;
    options: {
        clientId: string;
        mode: ReactifySearchMode;
        index: string;
        shopifyPermanentDomain: string;
        market?: string;
        filtersHandle?: string;
        credentials?: string;
        onRedirect?: (type: "redirect" | "search", url: string) => void;
        theme: Record<string, unknown>;
        additionalComponentIds?: Array<string>;
        includeFields?: Array<string>;
        excludeFields?: Array<string>;
        query?: Record<string, string>;
        preload?: {
            config: Config;
            state: unknown;
        };
    } & ({
        mode: "search";
    } | {
        mode: "collection";
        collectionHandle: string;
    } | {
        mode: "instant-search";
    } | {
        mode: "curated-page";
        variation: "collection";
        handle: string;
    } | {
        mode: "curated-page";
        variation: "search";
        searchTerm: string;
    });
    search: {
        searchTerm: string;
        setSearchTerm: React.Dispatch<React.SetStateAction<string>>;
        showInstantSearchResults: boolean;
        setShowInstantSearchResults: React.Dispatch<React.SetStateAction<boolean>>;
        searchRedirect: ConfigRedirect | undefined;
    };
    sortby: {
        sortOption: string;
        setSortOption: React.Dispatch<React.SetStateAction<string>>;
    };
    results: {
        results: ReactivesearchResultProps["data"];
        setResults: React.Dispatch<React.SetStateAction<ReactivesearchResultProps["data"]>>;
        resultStats?: ReactivesearchResultProps["resultStats"];
        setResultStats: React.Dispatch<React.SetStateAction<ReactivesearchResultProps["resultStats"] | undefined>>;
    };
    curation: ConfigCuration | undefined;
} | undefined>;
export declare const useReactifySearchContext: () => {
    config: Config;
    options: {
        clientId: string;
        mode: ReactifySearchMode;
        index: string;
        shopifyPermanentDomain: string;
        market?: string;
        filtersHandle?: string;
        credentials?: string;
        onRedirect?: (type: "redirect" | "search", url: string) => void;
        theme: Record<string, unknown>;
        additionalComponentIds?: Array<string>;
        includeFields?: Array<string>;
        excludeFields?: Array<string>;
        query?: Record<string, string>;
        preload?: {
            config: Config;
            state: unknown;
        };
    } & ({
        mode: "search";
    } | {
        mode: "collection";
        collectionHandle: string;
    } | {
        mode: "instant-search";
    } | {
        mode: "curated-page";
        variation: "collection";
        handle: string;
    } | {
        mode: "curated-page";
        variation: "search";
        searchTerm: string;
    });
    search: {
        searchTerm: string;
        setSearchTerm: React.Dispatch<React.SetStateAction<string>>;
        showInstantSearchResults: boolean;
        setShowInstantSearchResults: React.Dispatch<React.SetStateAction<boolean>>;
        searchRedirect: ConfigRedirect | undefined;
    };
    sortby: {
        sortOption: string;
        setSortOption: React.Dispatch<React.SetStateAction<string>>;
    };
    results: {
        results: ReactivesearchResultProps["data"];
        setResults: React.Dispatch<React.SetStateAction<ReactivesearchResultProps["data"]>>;
        resultStats?: ReactivesearchResultProps["resultStats"];
        setResultStats: React.Dispatch<React.SetStateAction<ReactivesearchResultProps["resultStats"] | undefined>>;
    };
    curation: ConfigCuration | undefined;
};
