import compile from "./compile.js"; import Encoder, { Dispatcher as Schema } from "./encode/Encoder.js"; import schemaOf, { DispatcherWithMemory as SchemaWithMemory } from "./schemaOf.js"; import registry, { InstanceConstructor } from "./registry.js"; import BufferEncoder from "./encode/BufferEncoder.js"; export { schemaOf, Schema, SchemaWithMemory, compile, registry }; export type { SchemaToType } from "./SchemaToType.js"; export declare function bunker(value: any, schema?: Schema | SchemaWithMemory, encoder?: BufferEncoder): Uint8Array; export declare namespace bunker { var compile: typeof import("./compile.js").default; var registry: { entries: Record; add(constructor: InstanceConstructor, schema: Schema, name?: string | undefined): any; findEntryFromConstructor(constructor: InstanceConstructor): import("./registry.js").RegistryEntry | null; findEntryFromInstance(instance: object): import("./registry.js").RegistryEntry | null; }; var register: typeof import("./index.js").register; var encodeSchema: typeof import("./index.js").encodeSchema; var character: (value: number) => void; var binary: (value: Uint8Array) => void; var boolean: (value: boolean) => void; var positiveInteger: (value: number) => void; var integer: (value: number) => void; var bigInteger: (value: bigint) => void; var number: (value: number) => void; var string: (value: string) => void; var regularExpression: (value: RegExp) => void; var date: (value: Date) => void; var any: (value: any) => void; var nullable: (dispatch?: Schema) => import("./augment.js").Augmented<(this: Encoder, value: T | null | undefined) => void>; var tuple: (dispatchers: { [Index in keyof Tuple]: Schema; }) => import("./augment.js").Augmented<(this: Encoder, value: Tuple) => void>; var instance: { ([keyDispatcher, valueDispatcher]: [Schema, Schema]): import("./augment.js").Augmented<(this: Encoder, value: Map) => void>; ([keyDispatcher, valueDispatcher]: [Schema, Schema], properties: import("./encode/Encoder.js").PropertiesDispatcher

): import("./augment.js").Augmented<(this: Encoder, value: Map & P) => void>; }; var object: (properties: import("./encode/Encoder.js").PropertiesDispatcher) => import("./augment.js").Augmented<(this: Encoder, value: O) => void>; var array: { (dispatch: Schema): import("./augment.js").Augmented<(this: Encoder, value: T[]) => void>; (dispatch: Schema, properties: import("./encode/Encoder.js").PropertiesDispatcher

): import("./augment.js").Augmented<(this: Encoder, value: T_1[] & P) => void>; }; var set: { (dispatch: Schema): import("./augment.js").Augmented<(this: Encoder, value: Set) => void>; (dispatch: Schema, properties: import("./encode/Encoder.js").PropertiesDispatcher

): import("./augment.js").Augmented<(this: Encoder, value: Set & P) => void>; }; var map: { ([keyDispatcher, valueDispatcher]: [Schema, Schema]): import("./augment.js").Augmented<(this: Encoder, value: Map) => void>; ([keyDispatcher, valueDispatcher]: [Schema, Schema], properties: import("./encode/Encoder.js").PropertiesDispatcher

): import("./augment.js").Augmented<(this: Encoder, value: Map & P) => void>; }; } /** * Decode a single values encoded into an Uint8Array */ export declare function debunker(data: Uint8Array): unknown; /** * Decode many values sequenced into a single Uint8Array */ export declare function debunkerMany(data: Uint8Array): unknown[]; export declare function register(constructor: InstanceConstructor, schema: Schema, name?: string): void; export declare function encodeSchema(schema: Schema): Uint8Array; export declare const character: (value: number) => void, binary: (value: Uint8Array) => void, boolean: (value: boolean) => void, positiveInteger: (value: number) => void, integer: (value: number) => void, bigInteger: (value: bigint) => void, number: (value: number) => void, string: (value: string) => void, regularExpression: (value: RegExp) => void, date: (value: Date) => void, any: (value: any) => void, nullable: (dispatch?: Schema) => import("./augment.js").Augmented<(this: Encoder, value: T | null | undefined) => void>, tuple: (dispatchers: { [Index in keyof Tuple]: Schema; }) => import("./augment.js").Augmented<(this: Encoder, value: Tuple) => void>, instance: (name: string) => import("./augment.js").Augmented<(this: Encoder, value: object) => void>, object: (properties: import("./encode/Encoder.js").PropertiesDispatcher) => import("./augment.js").Augmented<(this: Encoder, value: O) => void>, array: { (dispatch: Schema): import("./augment.js").Augmented<(this: Encoder, value: T[]) => void>; (dispatch: Schema, properties: import("./encode/Encoder.js").PropertiesDispatcher

): import("./augment.js").Augmented<(this: Encoder, value: T_1[] & P) => void>; }, set: { (dispatch: Schema): import("./augment.js").Augmented<(this: Encoder, value: Set) => void>; (dispatch: Schema, properties: import("./encode/Encoder.js").PropertiesDispatcher

): import("./augment.js").Augmented<(this: Encoder, value: Set & P) => void>; }, map: { ([keyDispatcher, valueDispatcher]: [Schema, Schema]): import("./augment.js").Augmented<(this: Encoder, value: Map) => void>; ([keyDispatcher, valueDispatcher]: [Schema, Schema], properties: import("./encode/Encoder.js").PropertiesDispatcher

): import("./augment.js").Augmented<(this: Encoder, value: Map & P) => void>; };