import { t as Awaitable } from "./types-Bt4vrwsT.js"; import { I18nConfig } from "./i18n/index.js"; import { i as LoaderConfig, o as LoaderOutput, u as Page } from "./path-CDjb5iUO.js"; import { AdvancedIndex, AdvancedOptions, Dynamic, Index, SearchAPI, SimpleOptions } from "./search/server.js"; import { Language, Orama, TypedDocument } from "@orama/orama"; //#region src/search/orama/create-db.d.ts type SimpleDocument = TypedDocument>; declare const simpleSchema: { readonly url: "string"; readonly title: "string"; readonly breadcrumbs: "string[]"; readonly description: "string"; readonly content: "string"; readonly keywords: "string"; }; type AdvancedDocument = TypedDocument>; declare const advancedSchema: { readonly content: "string"; readonly page_id: "string"; readonly type: "string"; readonly breadcrumbs: "string[]"; readonly tags: "enum[]"; readonly url: "string"; readonly embeddings: "vector[512]"; }; //#endregion //#region src/search/orama/create-from-source.d.ts interface Options extends Omit { localeMap?: { [K in C['i18n'] extends I18nConfig ? Languages : string]?: Partial | Language }; buildIndex?: (page: Page) => Awaitable; } declare function createFromSource(source: LoaderOutput, options?: Options): SearchAPI; //#endregion //#region src/search/orama/create-i18n.d.ts type I18nOptions = Omit & { i18n: I18nConfig; /** * Map locale name from i18n config to Orama compatible `language` or options */ localeMap?: Record | undefined>; indexes: WithLocale[] | Dynamic>; }; type I18nSimpleOptions = I18nOptions; type I18nAdvancedOptions = I18nOptions; type WithLocale = T & { locale: string; }; declare function createI18nSearchAPI(type: T, options: T extends 'simple' ? I18nSimpleOptions : I18nAdvancedOptions): SearchAPI; //#endregion export { advancedSchema as a, SimpleDocument as i, createFromSource as n, simpleSchema as o, AdvancedDocument as r, createI18nSearchAPI as t };