export = Storage; declare class Storage { /** * * @param {Options} options */ static start(options: Options): Promise; /** * @private * @param {PeerId} peerId * @param {Keychain} keychain * @param {Repo} repo * @param {Print} print * @param {boolean} isNew */ private constructor(); print: (...args: any[]) => void; peerId: import("peer-id"); keychain: any; repo: import("../interface/repo").Repo; isNew: boolean; } declare namespace Storage { export { Options, StorageOptions, RepoOptions, ConfigureOptions, InitOptions, IPLDOptions, Print, IPFSConfig, Repo, KeyType, Keychain }; } type Options = StorageOptions & RepoOptions & InitOptions; type StorageOptions = { /** * - The file path at which to store the * IPFS node’s data. Alternatively, you can set up a customized storage system * by providing an Repo implementation. (In browser default is 'ipfs'). */ repo?: string | import("../interface/repo").Repo | undefined; /** * - js-ipfs comes bundled with a tool * that automatically migrates your IPFS repository when a new version is * available. */ repoAutoMigrate?: boolean | undefined; repoOwner?: boolean | undefined; ipld?: import("../interface/ipld").Options | undefined; }; type RepoOptions = { print: Print; config?: import("./config").IPFSConfig | undefined; silent?: boolean | undefined; }; type ConfigureOptions = { config?: import("./config").IPFSConfig | undefined; profiles?: string[] | undefined; pass?: string | undefined; }; /** * - On Frist run js-ipfs will initalize a repo * which can be customized through this settings. */ type InitOptions = { /** * - Whether to remove built-in assets, * like the instructional tour and empty mutable file system, from the repo. */ emptyRepo?: boolean | undefined; /** * - The type of key to use. */ algorithm?: "Ed25519" | "RSA" | "secp256k1" | undefined; /** * - Number of bits to use in the generated key * pair (rsa only). */ bits?: number | undefined; /** * - A pre-generated private key to use. * **NOTE: This overrides `bits`.** */ privateKey?: string | import("peer-id") | undefined; /** * - A passphrase to encrypt keys. You should * generally use the top-level `pass` option instead of the `init.pass` * option (this one will take its value from the top-level option if not set). */ pass?: string | undefined; /** * - Apply profile settings to config. */ profiles?: string[] | undefined; /** * - Set to `false` to disallow * initialization if the repo does not already exist. */ allowNew?: boolean | undefined; }; type IPLDOptions = import("../interface/ipld").Options; type Print = (...args: any[]) => void; type IPFSConfig = { Addresses: import("./config").AddressConfig; Profiles?: string | undefined; Bootstrap?: string[] | undefined; Discovery: import("./config").DiscoveryConfig; Datastore?: import("./config").DatastoreConfig | undefined; Identity?: import("./config").IdentityConfig | undefined; Keychain?: import("./config").KeychainConfig | undefined; Pubsub?: import("./config").PubsubConfig | undefined; Swarm?: import("./config").SwarmConfig | undefined; Routing?: import("./config").RoutingConfig | undefined; }; type Repo = import("../interface/repo").Repo; type KeyType = "Ed25519" | "RSA" | "secp256k1"; type Keychain = any; //# sourceMappingURL=storage.d.ts.map