import { GraphQLEnumType } from "graphql"; import { StringKeyOf, EnumValue, Removable } from "../../../.."; import { GQLAnyType } from "../../GQLAnyType"; export declare class EnumType extends GQLAnyType { private _values; private _enumType?; get enumType(): TEnumType; get values(): readonly EnumValue>[]; protected constructor(name: string, enumType?: TEnumType); /** * Create an EnumType */ static create(name: string): EnumType; static create(name: string, enumType: T): EnumType; /** * Set the enum values * @param values The values to add */ setValues(...values: EnumValue>[]): this; /** * Add some enum values * @param values The values to add */ addValues(...values: EnumValue>[]): this; /** * Add a single enum value * @param name the value name * @param value the value */ addValue(name: StringKeyOf, value: any): this; /** * Remove some values from the enum * @param values The values to remove */ removeValues(...values: Removable): this; copy(): EnumType; build(): GraphQLEnumType; }