import type { FieldTypeConstraints, Severity, ValidationIssue } from "../types.js"; /** * Context for field type validation. * * @beta */ export interface FieldTypeContext { /** The _field discriminator value (e.g., "text", "number", "enum") */ fieldType: string; /** The field name */ fieldName: string; /** Optional path for nested fields */ path?: string; } /** * Validates a field type against constraints. * * @param context - Information about the field being validated * @param constraints - Field type constraints * @returns Array of validation issues (empty if valid) * * @beta */ export declare function validateFieldTypes(context: FieldTypeContext, constraints: FieldTypeConstraints): ValidationIssue[]; /** * Checks if a field type is allowed by the constraints. * Useful for quick checks without generating issues. * * @param fieldType - The _field discriminator value * @param constraints - Field type constraints * @returns true if allowed, false if disallowed * * @beta */ export declare function isFieldTypeAllowed(fieldType: string, constraints: FieldTypeConstraints): boolean; /** * Gets the severity level for a field type. * * @param fieldType - The _field discriminator value * @param constraints - Field type constraints * @returns Severity level, or "off" if not constrained * * @beta */ export declare function getFieldTypeSeverity(fieldType: string, constraints: FieldTypeConstraints): Severity; //# sourceMappingURL=field-types.d.ts.map