import { MetadataFilterRequest, MetadataSearchParams } from '../types/core/MetadataFilter'; import { StyledAutoCompleteOption } from '../types/search'; export declare const SEARCH_TERM_PREFIX = "__search_term__"; interface MetadataUniqueValuesResponse { popular: Array; all: StyledAutoCompleteOption[]; } interface UseMetadataSearchOptions { includeSearchTermAsOption?: boolean; } export default function useMetadataSearch(options?: UseMetadataSearchOptions): { handleFetch: (searchTerm: string, entity: MetadataFilterRequest["entity"], { includeNameSearch, includeDraftValues, isSection, isTemplate, isBlock, key, ownerId, searchMode, threshold, fetchAllUnique, contentType, }?: { includeNameSearch?: boolean; includeDraftValues?: boolean; isSection?: boolean; isTemplate?: boolean; isBlock?: boolean; key?: MetadataSearchParams["key"]; ownerId?: number | null; searchMode?: MetadataSearchParams["searchMode"]; threshold?: number; fetchAllUnique?: boolean; contentType?: string[]; }) => Promise; fetchUniqueValues: (entity: MetadataFilterRequest["entity"], { includeDraftValues, isSection, isTemplate, isBlock, key, ownerId, limit, and, }?: { includeDraftValues?: boolean; isSection?: boolean; isTemplate?: boolean; isBlock?: boolean; key?: MetadataSearchParams["key"]; ownerId?: number | null; limit?: number; and?: Array<{ key: string; value: string; }>; }) => Promise; }; export {};