import { Reporter } from "./base/reporter.mjs"; export declare function define(name: string, body: any): Entity; export declare class Entity { name: string; body: any; decoders: Record; encoders: Record; constructor(name: string, body: any); _createNamed(base: any): { [x: string]: any; }; _getDecoder(enc: string): any; decode(data: any, enc: string, options?: any): any; _getEncoder(enc: string): any; encode(data: any, enc: string, /* internal */ reporter: Reporter): any; }