export = PubSubAPI; declare class PubSubAPI { /** * @param {Object} config * @param {IPNS} config.ipns * @param {Options} [config.options] */ constructor({ ipns, options }: { ipns: IPNS; options: import("./utils").PubSubRoutingOptions | undefined; }); cancel: (name: string, options?: import("../../../utils").AbortOptions | undefined) => Promise<{ canceled: boolean; }>; state: (_options?: import("../../../utils").AbortOptions | undefined) => Promise<{ enabled: boolean; }>; subs: (options?: import("../../../utils").AbortOptions | undefined) => Promise; } declare namespace PubSubAPI { export { IPNS, Options, AbortOptions }; } type IPNS = import("../../ipns"); type Options = { /** * - Enable pub-sub on IPNS. (Default: `false`) */ ipnsPubsub?: boolean | undefined; }; 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=index.d.ts.map