import type { BasePayload } from 'payload'; import type { I18nConfig } from '../i18n/index.js'; export type SearchResult = { description?: string; slug: string; title: string; /** Locale-aware path, prefixed with baseUrl when given. */ url: string; }; type SearchContentArgs = { /** Absolute origin to prefix URLs with. Omit for relative paths. */ baseUrl?: string; /** Pages collection. Default 'pages'. */ collection?: string; config: I18nConfig; /** Home slug map/string so the home result collapses to root. */ homeSlug?: Record | string; /** Max results. Default 10, clamped 1–50. */ limit?: number; /** Locale to search/return. Defaults to config.defaultLocale; invalid → default. */ locale?: string; payload: BasePayload; /** Keywords. */ query: string; /** * Field holding a richer AI summary (see buildSummaryField). When set and * present on a doc, it's preferred over meta.description for the result's * description. */ summaryField?: string; }; /** * Shared content search: title / meta-description keyword match over a * collection, returning structured results (published, non-noindex only). One * implementation behind BOTH the JSON search route (createSearchRoute) and the * MCP server's search_content tool — so site search, API and AI all rank the * same way. * * Degrades to [] (never throws) when the collection's fields aren't queryable — * same guard class as the drafts/_status lesson. */ export declare function searchContent({ baseUrl, collection, config, homeSlug, limit, locale, payload, query, summaryField, }: SearchContentArgs): Promise; export {};