import type { ImmutableDictionary } from "../util/dictionary.js"; import type { SchemaOptions } from "./Schema.js"; import { Schema } from "./Schema.js"; /** Allowed options for `DictionarySchema` */ export interface DictionarySchemaOptions extends SchemaOptions { readonly items: Schema; readonly value?: ImmutableDictionary | undefined; readonly min?: number | undefined; readonly max?: number | undefined; } /** Validate a dictionary object (whose props are all the same with string keys). */ export declare class DictionarySchema extends Schema> { readonly value: ImmutableDictionary; readonly items: Schema; readonly min: number; readonly max: number; constructor({ items, one, many, placeholder, min, max, title, value, ...options }: DictionarySchemaOptions); validate(unsafeValue?: unknown): ImmutableDictionary; } /** Valid dictionary object with specifed items. */ export declare const DICTIONARY: (items: Schema) => DictionarySchema;