import * as t from "io-ts"; import { Tagged } from "./types"; export interface INonEmptyStringTag { readonly kind: "INonEmptyStringTag"; } /** * A non-empty string */ export declare const NonEmptyString: Tagged; export type NonEmptyString = t.TypeOf; export interface IWithinRangeStringTag { readonly lower: L; readonly higher: H; readonly kind: "IWithinRangeStringTag"; } /** * A string guaranteed to have a length within the range [L,H) */ export declare const WithinRangeString: >(l: L, h: H) => Tagged; export type WithinRangeString = string & IWithinRangeStringTag; export interface IPatternStringTag

{ readonly pattern: P; readonly kind: "IPatternStringTag"; } /** * A string that matches a pattern. */ export declare const PatternString:

>(p: P) => Tagged; export type PatternString

= string & IPatternStringTag

; export interface IEmailStringTag { readonly kind: "IEmailStringTag"; } /** * A string that represents a valid email address. */ export declare const EmailString: Tagged; export type EmailString = t.TypeOf; export interface IIPStringTag { readonly kind: "IIPStringTag"; } /** * A string that represents an IP (v4 or v6). */ export declare const IPString: Tagged; export type IPString = t.TypeOf; /** * A string that represents a valid CIDR. */ export declare const CIDR: Tagged, string, string, unknown>; export type CIDR = t.TypeOf; /** * A valid Fiscal Number (for persons) */ export declare const FiscalCode: Tagged, string, string, unknown>; export type FiscalCode = t.TypeOf; /** * A sandbox Fiscal Code (used for development) * Note that this pattern doesn't generate valid fiscal codes */ export declare const SandboxFiscalCode: Tagged, string, string, unknown>; export type SandboxFiscalCode = t.TypeOf; /** * A valid Fiscal Number (for organizations) */ export declare const OrganizationFiscalCode: Tagged, string, string, unknown>; export type OrganizationFiscalCode = t.TypeOf; /** * The App version using the format {major}.{minor}.{patch}(.{build}) * The build value is optional. */ export declare const Semver: Tagged, string, string, unknown>; export type Semver = t.TypeOf; /** * A valid ULID string */ export declare const Ulid: Tagged, string, string, unknown>; export type Ulid = t.TypeOf;