/// <reference types="node" />
import { ObConfig } from '../global/global.model';
export interface IPFSMessage {
    data: Buffer;
    from: string;
    seqno: Buffer;
    topicIDs: string[];
}
export declare class IpfsService {
    private config;
    ipfsNode: any;
    id: string;
    private ready;
    constructor(config: ObConfig);
    subscribe(topic: string, handler: (msg: IPFSMessage) => void): Promise<void>;
    unsubscribe(topic: string): Promise<void>;
    publish(topic: string, data: any): Promise<void>;
    getTopic(marketId: string): string;
}
