import type { RosbridgeClient } from "./client.js"; import type { MessageHandler } from "./types.js"; /** * Helper for publishing messages to a ROS2 topic. */ export declare class TopicPublisher { private client; private topic; private type; constructor(client: RosbridgeClient, topic: string, type: string); /** Publish a message to the topic. */ publish(msg: Record): void; } /** * Helper for subscribing to messages from a ROS2 topic. */ export declare class TopicSubscriber { private client; private topic; private type?; private unsubscribeFromClient; constructor(client: RosbridgeClient, topic: string, type?: string | undefined); /** Subscribe to the topic and receive messages via the handler. */ subscribe(handler: MessageHandler): void; /** Unsubscribe from the topic. */ unsubscribe(): void; } //# sourceMappingURL=topics.d.ts.map