import { Expressions } from "../types/groq-expressions"; import { ResultItem } from "../types/result-types"; import { ValidateParserInput } from "../types/projection-types"; import { Parser, ParserWithWidenedInput } from "../types/parser-types"; import { QueryConfig } from "../types/query-config"; declare module "../groq-builder" { interface GroqBuilder extends FieldDefinition { } interface GroqBuilderSubquery extends FieldDefinition { } interface FieldDefinition { /** * 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, TQueryConfig>>(fieldName: TProjectionPath): GroqBuilder, TQueryConfig, TProjectionPath>>, 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, TQueryConfig>, TParser extends ParserWithWidenedInput, TQueryConfig, TProjectionPath>>>(fieldName: TProjectionPath, parser: TParser): GroqBuilder ? ValidateParserInput, TQueryConfig, TProjectionPath>, TParserInput, TParserOutput, TProjectionPath> : never>, TQueryConfig>; /** @deprecated Please use the 'field' method for naked projections */ projectField: never; /** @deprecated Please use the 'field' method for naked projections */ projectNaked: never; } }