/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { Bytes } from "#util/Bytes.js";
export interface MockRouter extends MockRouter.Route {
    add(route: MockRouter.Route): void;
    delete(route: MockRouter.Route): void;
}
export declare function MockRouter(manipulator?: MockRouter.PacketManipulator): MockRouter;
export declare namespace MockRouter {
    interface Packet {
        kind: "udp";
        sourceAddress: string;
        sourcePort: number;
        destAddress: string;
        destPort: number;
        payload: Bytes;
    }
    interface Route {
        (packet: Packet): void;
    }
    type PacketManipulator = (packet: Packet) => Packet | null;
}
//# sourceMappingURL=MockRouter.d.ts.map