import type { BlogPost } from "../types";
export interface UseSearchOptions {
    searchFields?: ("title" | "content")[];
    debounceMs?: number;
    minSearchLength?: number;
}
export interface UseSearchResult {
    posts: BlogPost[];
    loading: boolean;
    error: string | null;
    searchQuery: string;
    setSearchQuery: (query: string) => void;
    totalResults: number;
    hasSearched: boolean;
}
export declare function useSearch(options?: UseSearchOptions): UseSearchResult;
