import { ValidationMessage } from '../validation/message.js'; import type { Field } from './field.js'; export interface ParsedDefaultValue { /** * The default value in the form that would result from parsing an equivalent GraphQL input * value (e.g. normalized DateTime strings, rounded decimals, ZonedDateTime instances for * OffsetDateTime) * * If the value does not match the field type, this is the raw value so runtime behavior does * not change for these models. */ readonly value: unknown; readonly messages: ReadonlyArray; } /** * Checks the @defaultValue of a field against the field's type and parses it * * Expects the field to be valid in other respects (e.g. not a relation) * * Mismatches are reported as warnings for now because they used to be accepted. They should * become errors in a future major version. */ export declare function parseDefaultValue(field: Field): ParsedDefaultValue;