/** Opaque type utilities. */ import { Opaque } from 'ts-essentials'; /** Dash-separated string, with optional `.` prefix. */ export type Slug = Opaque; /** * Promotes a string to a `Slug` instance, throwing `if the input is not a valid * slug. */ export declare function newSlug(arg: string, maxLength?: number): Slug; /** Checks whether the string is a valid slug. */ export declare function isSlug(arg: string, maxLength?: number): arg is Slug; /** Attempts to transform the string into a valid slug. */ export declare function slugify(arg: string, maxLength?: number): Slug; /** Standard UUID. */ export type Uuid = Opaque; /** * Promotes a string to a `Uuid` instance, throwing if the input is not a valid * UUID. */ export declare function newUuid(arg: string): Uuid; /** Checks whether the string is a valid UUID. */ export declare function isUuid(arg: string): arg is Uuid;