/// <reference types="node" />
import { Duplex } from "stream";
import { Serialized } from "../serialization/serialization";
import type { RequestRuleData } from "./requests/request-rule";
import type { WebSocketRuleData } from "./websockets/websocket-rule";
export declare function validateMockRuleData(data: RequestRuleData | WebSocketRuleData): void;
export declare function serializeRuleData<DataFormat extends RequestRuleData | WebSocketRuleData>(data: DataFormat, stream: Duplex): Serialized<DataFormat>;
//# sourceMappingURL=rule-serialization.d.ts.map