import { Result } from 'neverthrow'; export interface NonEmptyString { readonly _tag: 'NonEmptyString'; readonly value: string; } export declare const NonEmptyString: { readonly from: (s: string) => Result; readonly value: (s: NonEmptyString) => string; }; export type PositiveNumber = number & { readonly _tag: 'PositiveNumber'; }; export declare const PositiveNumber: { readonly from: (n: number) => Result; readonly plus: (a: PositiveNumber, b: PositiveNumber) => PositiveNumber; readonly plusRaw: (base: PositiveNumber, delta: number) => Result; readonly minus: (a: PositiveNumber, b: PositiveNumber) => Result; readonly minusRaw: (base: PositiveNumber, delta: number) => Result; readonly compareTo: (a: PositiveNumber, b: PositiveNumber) => -1 | 0 | 1; readonly value: (n: PositiveNumber) => number; }; export type ID = string & { readonly _tag: 'ID'; readonly _phantom?: T; }; export declare const ID: { readonly generate: () => ID; readonly value: (id: ID) => string; }; export type NonEmptyArray = [T, ...T[]]; export declare const NonEmptyArray: { readonly from: (xs: T[]) => Result, string>; }; //# sourceMappingURL=primitive.d.ts.map