1 | import { Runtype, RuntypeBase, Static } from '../runtype';
|
2 | export declare const RuntypeName: unique symbol;
|
3 | export interface RuntypeBrand<B extends string> {
|
4 | [RuntypeName]: {
|
5 | [k in B]: B;
|
6 | };
|
7 | }
|
8 | export interface Brand<B extends string, A extends RuntypeBase> extends Runtype<Static<A> & RuntypeBrand<B>> {
|
9 | tag: 'brand';
|
10 | brand: B;
|
11 | entity: A;
|
12 | }
|
13 | export declare function Brand<B extends string, A extends RuntypeBase>(brand: B, entity: A): any;
|