import { C as LocaleSource, S as ValidationContext, _ as validateItem, b as ValidationMarkerCode, d as evaluateDocumentObservable, f as resolveTypeForArrayItem, h as validateDocumentObservable, m as validateDocumentInternal, n as ValidateDocumentInternalOptions, o as ValidateItemOptions, r as ValidateDocumentObservableOptions, u as evaluateDocumentInternal } from "./validateDocument-CdvFjlAk.js";
import { Path, Rule as Rule$1, RuleClass, Schema, SchemaType, SchemaValidationValue, ValidationContext as ValidationContext$1, ValidationError, ValidationMarker } from "@sanity/types";
export declare function getFallbackLocaleSource(): LocaleSource;
export declare const validationLocaleStrings: {
  readonly 'array.exact-length': 'Must have exactly {{wantedLength}} items';
  readonly 'array.exact-length_blocks': 'Must have exactly {{wantedLength}} blocks';
  readonly 'array.item-duplicate': "Can't be a duplicate";
  readonly 'array.maximum-length': 'Must have at most {{maxLength}} items';
  readonly 'array.maximum-length_blocks': 'Must have at most {{maxLength}} blocks';
  readonly 'array.minimum-length': 'Must have at least {{minLength}} items';
  readonly 'array.minimum-length_blocks': 'Must have at least {{minLength}} blocks';
  readonly 'date.invalid-format': 'Must be a valid ISO-8601 formatted date string';
  readonly 'date.maximum': 'Must be at or before {{maxDate}}';
  readonly 'date.minimum': 'Must be at or after {{minDate}}';
  readonly 'generic.incorrect-type': 'Expected type "{{expectedType}}", got "{{actualType}}"';
  readonly 'generic.not-allowed': 'Value did not match any allowed values';
  readonly 'generic.not-allowed_hint': 'Value "{{hint}}" did not match any allowed values';
  readonly 'generic.required': 'Required';
  readonly 'number.greater-than': 'Must be greater than {{threshold}}';
  readonly 'number.less-than': 'Must be less than {{threshold}}';
  readonly 'number.maximum': 'Must be lower than or equal to {{maxNumber}}';
  readonly 'number.maximum-precision': 'Max precision is {{limit}}';
  readonly 'number.minimum': 'Must be greater than or equal to {{minNumber}}';
  readonly 'number.non-integer': 'Must be an integer';
  readonly 'object.asset-required': 'Asset is required';
  readonly 'object.asset-required_file': 'File is required';
  readonly 'object.asset-required_image': 'Image is required';
  readonly 'object.media-not-found': 'The asset could not be found in the Media Library';
  readonly 'object.not-media-library-asset': 'Must be a reference to a Media Library asset';
  readonly 'object.not-reference': 'Must be a reference to a document';
  readonly 'object.reference-not-published': 'Referenced document must be published';
  readonly 'slug.missing-current': 'Slug must have a value';
  readonly 'slug.not-object': 'Slug must be an object';
  readonly 'slug.not-unique': 'Slug is already in use';
  readonly 'string.email': 'Must be a valid email address';
  readonly 'string.exact-length': 'Must be exactly {{wantedLength}} characters long';
  readonly 'string.lowercase': 'Must be all lowercase characters';
  readonly 'string.maximum-length': 'Must be at most {{maxLength}} characters long';
  readonly 'string.minimum-length': 'Must be at least {{minLength}} characters long';
  readonly 'string.regex-does-not-match': 'Does not match "{{name}}"-pattern';
  readonly 'string.regex-match': 'Should not match "{{name}}"-pattern';
  readonly 'string.uppercase': 'Must be all uppercase characters';
  readonly 'string.url.disallowed-scheme': 'Does not match allowed protocols/schemes';
  readonly 'string.url.includes-credentials': 'Username/password not allowed';
  readonly 'string.url.invalid': 'Not a valid URL';
  readonly 'string.url.not-absolute': 'Relative URLs are not allowed';
  readonly 'string.url.not-relative': 'Only relative URLs are allowed';
};
export declare function inferFromSchema(schema: Schema): Schema;
export declare function inferFromSchemaType(typeDef: SchemaType, _schema: Schema, _visited?: Set<SchemaType>): SchemaType;
export declare function inferFromSchemaType(typeDef: SchemaType): SchemaType;
/**
 * Checks if a validation function may use the context parameter.
 *
 * Functions with 2+ parameters like `(rule, context) => ...` need runtime context
 * (e.g., `context.hidden`, `context.document`) and cannot be pre-evaluated at schema compile time.
 *
 * Simple functions with only a rule parameter can be normalized immediately.
 * Unrecognized signatures are deferred because their arity may hide context usage.
 *
 * @internal
 */
export declare function hasValidationContext(validation: SchemaValidationValue | undefined): boolean;
/**
 * Concrete Rule implementation with validation logic.
 * This extends the base Rule class from `@sanity/schema` and adds the validate method.
 *
 * Note: `RuleClass` and `Rule` are split to fit the current `@sanity/types`
 * setup. Classes are a bit weird in the `@sanity/types` package because classes
 * create an actual javascript class while simultaneously creating a type
 * definition.
 *
 * This implicitly creates two types:
 * 1. the instance type — `Rule` and
 * 2. the static/class type - `RuleClass`
 *
 * The `RuleClass` type contains the static methods and the `Rule` instance
 * contains the instance methods.
 *
 * This package exports the RuleClass as a value without implicitly exporting
 * an instance definition. This should help reminder downstream users to import
 * from the `@sanity/types` package.
 *
 * @internal
 */
export declare const Rule: RuleClass;
export declare function convertToValidationMarker(validatorResult: true | true[] | string | string[] | ValidationError | ValidationError[], level: 'error' | 'warning' | 'info' | undefined, context: ValidationContext, fallback?: {
  code: ValidationMarkerCode;
  details?: Record<string, unknown>;
}): ValidationMarker[];
export declare function getTypeChain(type: SchemaType | undefined, visited?: Set<SchemaType>): SchemaType[];
export declare function normalizeValidationRules(typeDef: SchemaType | undefined, context?: ValidationContext$1): Rule$1[];
export declare function pathToString(path?: Path | undefined): string;
export declare function typeString(obj: unknown): string;
export { type LocaleSource, type ValidateDocumentInternalOptions, type ValidateDocumentObservableOptions, type ValidateItemOptions, type ValidationContext, evaluateDocumentInternal, evaluateDocumentObservable, resolveTypeForArrayItem, validateDocumentInternal, validateDocumentObservable, validateItem };
//# sourceMappingURL=_internal.d.ts.map