@ceramicnetwork/core
Version:
Typescript implementation of the Ceramic protocol
16 lines • 704 B
TypeScript
import { Networks } from '@ceramicnetwork/common';
export declare type CeramicNetworkOptions = {
name: Networks;
pubsubTopic: string;
id: number;
};
export declare class CustomTopicError extends Error {
constructor();
}
export declare class UnrecognizedNetworkError extends Error {
constructor(network: string);
}
export declare function assertNetwork(input: string): asserts input is Networks;
export declare function pubsubTopicFromNetwork(network: Networks, customTopic: string | undefined): string;
export declare function networkOptionsByName(networkName: string, customTopic: string | undefined, id?: number): CeramicNetworkOptions;
//# sourceMappingURL=network-options.d.ts.map