/**
 * useFilters Hook
 *
 * React hook for fetching filter values, searching facet values,
 * and retrieving filter schema via the dedicated Filters API.
 */
import type { FilterOptions, FilterField, FiltersSchemaResponse, FacetValuesSearchResponse } from '@seekora-ai/search-sdk';
export interface UseFiltersOptions extends FilterOptions {
    /** Whether to automatically refetch filters when query or refinements change (default: true) */
    autoFetch?: boolean;
}
export interface UseFiltersReturn {
    /** Filter fields with values and counts */
    filters: FilterField[];
    /** Filter schema metadata (fetched once on mount) */
    schema: FiltersSchemaResponse | null;
    /** Whether filters are currently loading */
    loading: boolean;
    /** Error from the last fetch, if any */
    error: Error | null;
    /** Search within a facet's values (for typeahead/autocomplete) */
    searchFacetValues: (facetName: string, query: string) => Promise<FacetValuesSearchResponse>;
    /** Manually refetch filters */
    refetch: () => Promise<void>;
}
export declare const useFilters: (options?: UseFiltersOptions) => UseFiltersReturn;
//# sourceMappingURL=useFilters.d.ts.map