import { UnionPredicate } from 'optimal'; import { Config, Options } from './types'; export default class Definition { options: Options; attribute: string; config: T; /** * Represents a type definition for an attribute. */ constructor(options: Options, attribute: string, config?: Partial, validate?: boolean); /** * Create an option for type definitions that can be a string or object. */ createUnionType(defaultValue?: string | { type: string; }): UnionPredicate; /** * Returns true if the attribute allows nulls. */ isNullable(): boolean; /** * Returns true if the attribute is not required. */ isOptional(): boolean; /** * Validate the definition configuration. */ validateConfig(): void; } //# sourceMappingURL=Definition.d.ts.map