import { Writer } from "protobufjs/minimal";
import { Decoder, Encoder } from "./api";
interface ProtoEncoder<T> {
    encode(message: T): Writer;
}
interface ProtoDecoder<T> {
    decode(input: Uint8Array): T;
}
export declare function protoEncoder<T>(enc: ProtoEncoder<T>): Encoder<T>;
export declare function protoDecoder<T>(dec: ProtoDecoder<T>): Decoder<T>;
export {};
