import type { IMatrixContext } from './IMatrixContext';
import type { TransportHandler } from '../remoting/ITransportAdapter';
/**
 * One‑shot send to a child mount's $inbox.
 */
export declare function sendTo(context: IMatrixContext, childMount: string, command: string, payload?: unknown): void;
/**
 * "Parent view" onto a child: send commands and listen to its events.
 */
export declare function parentToChild(context: IMatrixContext, childMount: string): {
    send(command: string, payload?: unknown): void;
    on(event: string, handler: TransportHandler): () => void;
};
/**
 * "Child view" onto itself: handle commands and emit events at its own mount.
 */
export declare function childPorts(context: IMatrixContext): {
    onCommand(command: string, handler: TransportHandler): () => void;
    emitEvent(event: string, payload?: unknown): void;
};
export declare const Ports: {
    sendTo: typeof sendTo;
    parentToChild: typeof parentToChild;
    childPorts: typeof childPorts;
};
//# sourceMappingURL=Ports.d.ts.map