/** * Reusable validation primitives, expressed against the `SchemaValidator` * contract via `defineSchema`. Each export is a lazy getter. Calling it * materializes (and caches) the schema on first use. * * @module schemas/primitives */ import type { InferSchema, Schema } from "../extensions/schema/index.js"; import { type BoundedJsonValue } from "./json-value.js"; export declare const getNonEmptyStringSchema: () => Schema; export type NonEmptyString = InferSchema>; export declare const getPositiveIntSchema: () => Schema; export type PositiveInt = InferSchema>; export declare const getNonNegativeIntSchema: () => Schema; export type NonNegativeInt = InferSchema>; export declare const getPortNumberSchema: () => Schema; export type PortNumber = InferSchema>; export declare const getTimestampSchema: () => Schema; export type Timestamp = InferSchema>; /** * Recursive JSON value type: a string, number, boolean, null, array of * JsonValue, or object with string keys and JsonValue values. */ export type JsonValue = BoundedJsonValue; export declare const getJsonValueSchema: () => Schema; export declare const getHexColorSchema: () => Schema; export type HexColor = InferSchema>; export declare const getSemverSchema: () => Schema; export type Semver = InferSchema>; export declare const getFilePathSchema: () => Schema; export type FilePath = InferSchema>; export declare const getAbsolutePathSchema: () => Schema; export type AbsolutePath = InferSchema>; //# sourceMappingURL=primitives.d.ts.map