import { RequireAFakeParameterIfThereAreTypeMismatchErrors, Simplify } from "../types/utils"; import { ResultItem } from "../types/result-types"; import { ExtractProjectionResult, ProjectionMap } from "./projection-types"; declare module "../groq-builder" { interface GroqBuilder { /** * Performs an "object projection", returning an object with the fields specified. * * @param projectionMap - The projection map is an object, mapping field names to projection values * @param __projectionMapTypeMismatchErrors - (internal; this is only used for reporting errors from the projection) */ project>, _TProjectionResult = ExtractProjectionResult, TProjection>>(projectionMap: TProjection | ((q: GroqBuilder, TQueryConfig>) => TProjection), ...__projectionMapTypeMismatchErrors: RequireAFakeParameterIfThereAreTypeMismatchErrors<_TProjectionResult>): GroqBuilder>, TQueryConfig>; } }