import { ResultItem } from "../types/result-types"; import { ProjectionKey, ProjectionKeyValue, ValidateParserInput } from "./projection-types"; import { Parser, ParserWithWidenedInput } from "../types/public-types"; declare module "../groq-builder" { interface GroqBuilder { /** * Performs a "naked projection", returning just the values of the field specified. * * This overload does NOT perform any runtime validation; the return type is inferred. */ field>>(fieldName: TProjectionKey): GroqBuilder, TProjectionKey>>, TQueryConfig>; /** * Performs a "naked projection", returning just the values of the field specified. * * This overload allows a parser to be passed, for validating the results. */ field>, TParser extends ParserWithWidenedInput, TProjectionKey>>>(fieldName: TProjectionKey, parser: TParser): GroqBuilder ? ValidateParserInput, TProjectionKey>, TParserInput, TParserOutput> : never>, TQueryConfig>; /** @deprecated Please use the 'field' method for naked projections */ projectField: never; /** @deprecated Please use the 'field' method for naked projections */ projectNaked: never; } }