import { AnyExpression, Expression } from '../../expressions' import { CharacterArg, TextType } from '..' import { Type, type } from '../index' import { ConstraintConfig } from '../../functions' export const BOOLEAN = () => type`BOOLEAN` as BooleanType export type BooleanArg = BooleanType['argument'] export interface BooleanType extends Type<'BOOLEAN', R> { expression: BooleanExpression argument: BooleanExpression | this['input'] required(conf?: ConstraintConfig): BooleanType } export interface BooleanExpression extends AnyExpression> { concat(arg: CharacterArg): Expression> }