/**
* @since 1.0.0
*/
import * as Channel from "effect/Channel";
import * as Chunk from "effect/Chunk";
import type { ParseError } from "effect/ParseResult";
import * as Schema from "effect/Schema";
/**
* @since 1.0.0
* @category errors
*/
export declare const ErrorTypeId: unique symbol;
/**
* @since 1.0.0
* @category errors
*/
export type ErrorTypeId = typeof ErrorTypeId;
declare const MsgPackError_base: new = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
readonly _tag: "MsgPackError";
} & Readonly;
/**
* @since 1.0.0
* @category errors
*/
export declare class MsgPackError extends MsgPackError_base<{
readonly reason: "Pack" | "Unpack";
readonly cause: unknown;
}> {
/**
* @since 1.0.0
*/
readonly [ErrorTypeId]: ErrorTypeId;
/**
* @since 1.0.0
*/
get message(): "Pack" | "Unpack";
}
/**
* @since 1.0.0
* @category constructors
*/
export declare const pack: () => Channel.Channel, Chunk.Chunk, IE | MsgPackError, IE, Done, Done>;
/**
* @since 1.0.0
* @category constructors
*/
export declare const packSchema: (schema: Schema.Schema) => () => Channel.Channel, Chunk.Chunk, IE | MsgPackError | ParseError, IE, Done, Done, R>;
/**
* @since 1.0.0
* @category constructors
*/
export declare const unpack: () => Channel.Channel, Chunk.Chunk, IE | MsgPackError, IE, Done, Done>;
/**
* @since 1.0.0
* @category constructors
*/
export declare const unpackSchema: (schema: Schema.Schema) => () => Channel.Channel, Chunk.Chunk, MsgPackError | ParseError | IE, IE, Done, Done, R>;
/**
* @since 1.0.0
* @category combinators
*/
export declare const duplex: (self: Channel.Channel, Chunk.Chunk, OE, IE | MsgPackError, OutDone, InDone, R>) => Channel.Channel, Chunk.Chunk, MsgPackError | OE, IE, OutDone, InDone, R>;
/**
* @since 1.0.0
* @category combinators
*/
export declare const duplexSchema: {
/**
* @since 1.0.0
* @category combinators
*/
(options: {
readonly inputSchema: Schema.Schema;
readonly outputSchema: Schema.Schema;
}): (self: Channel.Channel, Chunk.Chunk, OutErr, MsgPackError | ParseError | InErr, OutDone, InDone, R>) => Channel.Channel, Chunk.Chunk, MsgPackError | ParseError | OutErr, InErr, OutDone, InDone, IR | OR | R>;
/**
* @since 1.0.0
* @category combinators
*/
(self: Channel.Channel, Chunk.Chunk, OutErr, MsgPackError | ParseError | InErr, OutDone, InDone, R>, options: {
readonly inputSchema: Schema.Schema;
readonly outputSchema: Schema.Schema;
}): Channel.Channel, Chunk.Chunk, MsgPackError | ParseError | OutErr, InErr, OutDone, InDone, R | IR | OR>;
};
/**
* @since 1.0.0
* @category schemas
*/
export interface schema extends Schema.transformOrFail, S> {
}
/**
* @since 1.0.0
* @category schemas
*/
export declare const schema: (schema: S) => schema;
export {};
//# sourceMappingURL=MsgPack.d.ts.map