import { TRequestPayloadType } from '../types';
export * from './validation';
export * from './rx';
/** Parses any payload into `type` and `data` */
export declare const parsePayload: (payload: unknown, expected?: TRequestPayloadType) => {
    type: TRequestPayloadType;
    data: unknown;
};
/** Serializes any payload into `Buffer` by provided `type` */
export declare const serializePayload: (type: TRequestPayloadType, payload: unknown) => Buffer;
//# sourceMappingURL=index.d.ts.map