import { RuntypeBase, Codec } from '../runtype'; /** * The super type of all literal types. */ export declare type LiteralValue = undefined | null | boolean | number | string; export interface Literal extends Codec { readonly tag: 'literal'; readonly value: TLiteralValue; } export declare function isLiteralRuntype(runtype: RuntypeBase): runtype is Literal; /** * Construct a runtype for a type literal. */ export declare function Literal(valueBase: A): Literal; /** * An alias for Literal(undefined). */ export declare const Undefined: Literal; /** * An alias for Literal(null). */ export declare const Null: Literal;