/** * Represents strings that are UUIDs. * * This is heavily inspired by the `validator.js` module * [`isUUID`](https://github.com/validatorjs/validator.js/blob/master/src/lib/isUUID.js). * * @since 0.0.1 */ import { Kind, Kind2, URIS, URIS2, HKT2 } from 'fp-ts/HKT'; import * as D from 'io-ts/Decoder'; import * as Enc from 'io-ts/Encoder'; import * as Eq_ from 'fp-ts/Eq'; import * as G from 'io-ts/Guard'; import * as TD from 'io-ts/TaskDecoder'; import * as t from 'io-ts/Type'; import * as Arb from '../internal/ArbitraryBase'; /** * Represents strings that are UUIDs. * * @since 0.0.1 * @category Model */ export declare type UUID = string & UUIDBrand; /** * @since 0.0.1 * @category Model */ export declare type UUIDSchemableOptions = { version: 1 | 2 | 3 | 4 | 5 | 'all'; }; /** * @since 0.0.1 * @category Model */ export declare type SchemableParams = (options: UUIDSchemableOptions) => HKT2; /** * @since 0.0.1 * @category Model */ export declare type SchemableParams1 = (options: UUIDSchemableOptions) => Kind; /** * @since 0.0.3 * @category Model */ export declare type SchemableParams2 = (options: UUIDSchemableOptions) => Kind2; /** * @since 0.0.1 * @category Model */ export declare type SchemableParams2C = (options: UUIDSchemableOptions) => Kind2; /** * @since 0.0.1 * @category Refinements */ export declare const isUUID: (options: UUIDSchemableOptions) => (s: string) => s is UUID; /** * @since 0.0.1 * @category Instances */ export declare const Decoder: SchemableParams2C; /** * @since 0.0.1 * @category Instances */ export declare const Eq: SchemableParams1; /** * @since 0.0.1 * @category Instances */ export declare const Guard: SchemableParams1; /** * @since 0.0.1 * @category Instances */ export declare const TaskDecoder: SchemableParams2C; /** * @since 0.0.1 * @category Instances */ export declare const Type: SchemableParams1; /** * @since 0.0.3 * @category Instances */ export declare const Encoder: SchemableParams2; /** * @since 0.0.3 * @category Instances */ export declare const Arbitrary: SchemableParams1; //# sourceMappingURL=UUID.d.ts.map