import { Field, Context, App } from "../../../main.js"; import { OpenApiTypes } from "../../../schemas/open-api-types.js"; type Props = S[] | ((app: App) => S[]); /** Allows only a specified set of values. * * **Params**: * - `allowed_values` - `Array` - list of acceptable values */ export default class Enum extends Field { typeName: string; allowed_values: Props; open_api_type: OpenApiTypes; getOpenApiSchema(context: Context): Promise>; constructor(allowed_values: Props); getAllowedValues(app: App): S[]; isProperValue(context: Context, value: S): Promise; hasIndex(): Promise; getPostgreSqlFieldDefinitions(): string[]; } export {};