@etherna/sdk-js
Version:
Etherna SDKs for operations on the network
20 lines • 715 B
TypeScript
import type { BeeClient } from ".";
import type { RequestOptions } from "../types";
import type { Reference } from "./types";
export declare class Pins {
private instance;
constructor(instance: BeeClient);
isPinned(reference: string, options?: RequestOptions): Promise<boolean>;
download(options?: RequestOptions): Promise<{
references: Reference[];
}>;
pin(reference: string, options?: RequestOptions): Promise<void>;
unpin(reference: string, options?: RequestOptions): Promise<void>;
/**
* Check if pinning is enabled on the current host
*
* @returns True if pinning is enabled
*/
pinEnabled(): Promise<boolean>;
}
//# sourceMappingURL=pins.d.ts.map