UNPKG

@orama/orama

Version:

A complete search engine and RAG pipeline in your browser, server, or edge network with support for full-text, vector, and hybrid search in less than 2kb.

5 lines (4 loc) 693 B
import type { AnyOrama, OramaPlugin } from '../types.js'; export type AvailablePluginHooks = (typeof AVAILABLE_PLUGIN_HOOKS)[number]; export declare const AVAILABLE_PLUGIN_HOOKS: readonly ["beforeInsert", "afterInsert", "beforeRemove", "afterRemove", "beforeUpdate", "afterUpdate", "beforeUpsert", "afterUpsert", "beforeSearch", "afterSearch", "beforeInsertMultiple", "afterInsertMultiple", "beforeRemoveMultiple", "afterRemoveMultiple", "beforeUpdateMultiple", "afterUpdateMultiple", "beforeUpsertMultiple", "afterUpsertMultiple", "beforeLoad", "afterLoad", "afterCreate"]; export declare function getAllPluginsByHook<T extends AnyOrama>(orama: T, hook: AvailablePluginHooks): OramaPlugin[];