import type { ValidationErrors } from './ValidationException.js'; /** * Collection of validation error messages keyed by field. */ export declare class MessageBag { private readonly messages; constructor(messages: ValidationErrors); /** * All messages keyed by attribute. */ all(): ValidationErrors; /** * Whether any messages exist for `key`. */ has(key: string): boolean; /** * First message for `key`, or the first message in the bag when `key` is omitted. */ first(key?: string): string | undefined; /** * All messages for `key` (empty array if none). */ get(key: string): string[]; /** * Whether the bag is empty. */ isEmpty(): boolean; } //# sourceMappingURL=MessageBag.d.ts.map