import { type ApiItem, type ApiDocsMetadata, type ApiStore, type ApiSpecType, type OpenAPIDefinition, type AsyncApiDefinition } from '@redocly/api-docs'; import type { SearchFacet } from '@redocly/theme/core/types'; import type { AfterRoutesCreatedActions, AfterRoutesCreatedLifecycleContext, PageRouteDetails } from '../../../types'; import type { MarkdocTagSchema } from '@redocly/theme/markdoc/tags/types'; import type { AiDocumentsStore } from '../../../plugins/search/types.js'; type ApiDocument = OpenAPIDefinition | AsyncApiDefinition | Record; type AiDocumentsStoreParams = { /** Read when the store runs: the markdoc rebuild in `afterRoutesCreated` replaces the items and the store built at route creation. */ getBuild: () => { items: ApiItem[]; store?: ApiStore; }; metadata: ApiDocsMetadata; document?: ApiDocument; specType: ApiSpecType; excludeFromSearch?: boolean; basePath: string; getSearchFacets: () => Map; markdocTags?: Record; }; export declare function getAiDocumentsStore({ getBuild, metadata, document, specType, excludeFromSearch, basePath, getSearchFacets, markdocTags, }: AiDocumentsStoreParams): (route: PageRouteDetails, _staticData: unknown, _context: AfterRoutesCreatedLifecycleContext, actions: AfterRoutesCreatedActions) => Promise; export {}; //# sourceMappingURL=get-ai-search-documents.d.ts.map