/**
 * useSearchState Hook
 *
 * React hook for accessing and managing search state via SearchStateManager
 * Provides reactive state and methods to update search parameters
 */
import type { SearchResponse } from '@seekora-ai/search-sdk';
import { SearchStateManager, type SearchState } from '@seekora-ai/ui-sdk-core';
export interface UseSearchStateReturn {
    query: string;
    refinements: Array<{
        field: string;
        value: string;
    }>;
    currentPage: number;
    itemsPerPage: number;
    sortBy?: string;
    results: SearchState['results'];
    loading: boolean;
    error: Error | null;
    setQuery: (query: string, triggerSearch?: boolean) => void;
    addRefinement: (field: string, value: string, triggerSearch?: boolean) => void;
    removeRefinement: (field: string, value: string, triggerSearch?: boolean) => void;
    clearRefinements: (triggerSearch?: boolean) => void;
    setPage: (page: number, triggerSearch?: boolean) => void;
    setSortBy: (sortBy: string, triggerSearch?: boolean) => void;
    search: (additionalOptions?: Parameters<SearchStateManager['search']>[0]) => Promise<SearchResponse | null>;
    clear: () => void;
}
/**
 * Hook to access and manage search state
 * Automatically subscribes to state changes and re-renders when state updates
 */
export declare const useSearchState: () => UseSearchStateReturn;
//# sourceMappingURL=useSearchState.d.ts.map