import type { Expand, GenericActionCtx, NamedTableInfo, VectorIndexNames, VectorSearchQuery } from "convex/server"; import type { GenericId } from "convex/values"; import * as Context from "effect/Context"; import * as Effect from "effect/Effect"; import * as Layer from "effect/Layer"; import type * as DataModel from "./DataModel"; type ConvexVectorSearch = GenericActionCtx>["vectorSearch"]; /** * The service shape backing the `VectorSearch` tag. Named so declaration emit * references it instead of expanding the call signature at every usage. */ export interface VectorSearchService { , IndexName extends VectorIndexNames, TableName>>>(tableName: TableName, indexName: IndexName, query: Expand, TableName>, IndexName>>): Effect.Effect; _score: number; }>>; } export type VectorSearchTag = Context.Service, VectorSearchService>; export declare const make: (vectorSearch: ConvexVectorSearch) => VectorSearchService; export declare const VectorSearch: () => VectorSearchTag; export type VectorSearch = VectorSearchService; export declare const layer: (vectorSearch: ConvexVectorSearch) => Layer.Layer, never, never>; export {}; //# sourceMappingURL=VectorSearch.d.ts.map