import 'reflect-metadata'; import { type ResolverMethodOptions, type ResolverParamOptions, type TypeThunk, type GraphqlParamFactory } from '../internal/metadata'; /** * Marks a class as a GraphQL resolver and optionally links it to an object type. * * When no `objectType` is provided, metadata from the class decorators or reflection is used. * Supplying a thunk allows lazy resolution of the GraphQL type to avoid circular imports. */ export declare const Resolver: (objectType?: TypeThunk) => ClassDecorator; /** * Declares a GraphQL query resolver method. * * By default the schema name matches the method name; pass `options.name` to override it and * provide a thunk to describe the return type when reflection metadata is insufficient. */ export declare const Query: (typeThunk?: TypeThunk, options?: ResolverMethodOptions) => MethodDecorator; /** * Declares a GraphQL mutation resolver method. * * Accepts the same signature as {@link Query}; the resulting field is added under the schema's * `Mutation` root instead of `Query`. */ export declare const Mutation: (typeThunk?: TypeThunk, options?: ResolverMethodOptions) => MethodDecorator; /** * Declares a field resolver for an object type or interface. * * Useful for computed properties, relationships, or overriding default property resolution. */ export declare const ResolveField: (typeThunk?: TypeThunk, options?: ResolverMethodOptions) => MethodDecorator; /** * Registers a method that resolves a federated entity reference. * * This maps to Apollo Federation's `__resolveReference` and is invoked when a subgraph needs * to hydrate an entity that was returned by another service. */ export declare const ResolveReference: (typeThunk?: TypeThunk) => MethodDecorator; /** * Injects a single named GraphQL argument into a resolver parameter. * * Supports optional type thunks and parameter options for transformation hooks. */ export declare const Arg: (nameOrType?: string | TypeThunk, maybeTypeOrOptions?: TypeThunk | ResolverParamOptions, maybeOptions?: ResolverParamOptions) => ParameterDecorator; /** * Injects GraphQL resolver arguments with overloads for both single named values and the full args object. * * Passing a string name mirrors {@link Arg} and extracts only that argument (e.g. `@Args('input')`). * Providing a type thunk or options without a name passes the entire args object and lets you describe its shape * (e.g. `@Args(() => CreateUserArgs)` or `@Args({ transform: true })`). * * @param nameOrType Optional argument name or type thunk describing the args object. * @param maybeTypeOrOptions Optional type thunk when the first parameter is the name, or parameter options. * @param maybeOptions Optional parameter options when both name and type thunk are supplied. */ export declare const Args: (nameOrType?: string | TypeThunk, maybeTypeOrOptions?: TypeThunk | ResolverParamOptions, maybeOptions?: ResolverParamOptions) => ParameterDecorator; /** * Provides the GraphQL execution context to the resolver. */ export declare const Context: (nameOrType?: string | TypeThunk, maybeTypeOrOptions?: TypeThunk | ResolverParamOptions, maybeOptions?: ResolverParamOptions) => ParameterDecorator; /** * Provides the parent object currently being resolved (useful in nested field resolvers). */ export declare const Parent: (nameOrType?: string | TypeThunk, maybeTypeOrOptions?: TypeThunk | ResolverParamOptions, maybeOptions?: ResolverParamOptions) => ParameterDecorator; /** * Provides the low-level `GraphQLResolveInfo` descriptor, including field selection and schema details. */ export declare const Info: (nameOrType?: string | TypeThunk, maybeTypeOrOptions?: TypeThunk | ResolverParamOptions, maybeOptions?: ResolverParamOptions) => ParameterDecorator; export declare const createGraphqlParamDecorator: (factory: GraphqlParamFactory) => ((data?: Data) => ParameterDecorator); //# sourceMappingURL=resolver.d.ts.map