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