import { z } from "zod/v4"; import type { JSONSchema } from "zod/v4/core"; import { RefinementHandler } from "../../core/types"; /** * Handles the `propertyNames` keyword (JSON Schema draft 2020-12). * * Every property name of an object instance must validate against the * `propertyNames` subschema. Since property names are always strings, * the subschema effectively constrains keys with string keywords such * as `pattern`, `maxLength`, `const`, or `enum`. Boolean subschemas * follow the usual semantics: `true` accepts every key and `false` * rejects objects with any properties. Non-object instances are * ignored, per the specification. */ export declare class PropertyNamesHandler implements RefinementHandler { apply(zodSchema: z.ZodTypeAny, schema: JSONSchema.BaseSchema): z.ZodTypeAny; }