import * as zjson from '../zjson'; import { DecodeStream } from '../decode-stream'; import { EncodeStream } from '../encode-stream'; import { Error } from '../values/error'; import { Type } from './types'; export declare class TypeError implements Type { type: Type; kind: string; constructor(type: Type); static stringify(type: Type): string; create(value: zjson.Value, stream: DecodeStream): Error; serialize(stream: EncodeStream): zjson.NoId; toString(): string; }