import { Icon } from 'itlab-icons'; import { MaybeRefOrGetter } from 'vue'; export type SearchDocument = { id: string; resource?: string; label: string; url: string; highlight?: string; preview?: string; icon?: Icon; }; export type SearchConfig = { skip?: number; limit?: number; resource?: string; resources?: string[]; timestampMin?: number; timestampMax?: number; allowEmptyQuery?: boolean; user?: boolean; file?: boolean; callback?: (documents: SearchDocument[]) => void; }; export declare function useSearch(configRef?: MaybeRefOrGetter): { results: SearchDocument[] | undefined; total: number | undefined; query: string; isSearching: boolean; fetch: (q?: string) => void; };