@rsksmart/rif-storage
Version:
Library integrating distributed storage projects
18 lines (17 loc) • 657 B
TypeScript
import ipfs from './providers/ipfs';
import swarm from './providers/swarm';
import { Provider, ProviderOptions, IpfsStorageProvider, SwarmStorageProvider } from './definitions';
import { Manager } from './manager';
/**
* Main entry point of the library that serves as a factory to create instances of StorageProvider
* for given provider.
*
* @param provider
* @param options
*/
declare function factory(provider: Provider, options: ProviderOptions): IpfsStorageProvider | SwarmStorageProvider | Manager;
export default factory;
export { Manager };
export { ipfs, swarm };
export { isFile, isDirectory } from './utils';
export * from './definitions';