declare function _exports({ network, config }: { network: import('.').NetworkService; config: import("./config").IPFSConfig | undefined; }): { subscribe: (topic: string, handler: (message: Message) => void, options?: import("../utils").AbortOptions | undefined) => Promise; unsubscribe: (topic: string, handler?: ((message: Message) => void) | undefined, options?: import("../utils").AbortOptions | undefined) => Promise; publish: (topic: string, data: Uint8Array, options: import("../utils").AbortOptions) => Promise; ls: (options?: import("../utils").AbortOptions | undefined) => Promise; peers: (topic: string, options?: import("../utils").AbortOptions | undefined) => Promise; }; export = _exports; export type Message = { from: string; seqno: Uint8Array; data: Uint8Array; topicIDs: string[]; }; export type AbortOptions = { /** * - A timeout in ms */ timeout?: number | undefined; /** * - Can be used to cancel any long running requests started as a result of this call */ signal?: AbortSignal | undefined; }; //# sourceMappingURL=pubsub.d.ts.map