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.

4 lines (3 loc) 270 B
import { AnyOrama, TypedDocument, Optional } from '../types.js'; export declare function getByID<T extends AnyOrama, ResultDocument extends TypedDocument<T>>(db: T, id: string): Optional<ResultDocument>; export declare function count<T extends AnyOrama>(db: T): number;