export = BlockAPI; declare class BlockAPI { /** * @param {Object} config * @param {Preload} config.preload * @param {BlockService} config.blockService * @param {GCLock} config.gcLock * @param {Pin} config.pin * @param {PinManager} config.pinManager */ constructor({ blockService, preload, gcLock, pinManager, pin }: { preload: Preload; blockService: BlockService; gcLock: GCLock; pin: Pin; pinManager: PinManager; }); get: (cid: string | import("cids") | Uint8Array, options?: (import("./get").GetOptions & import("../../utils").AbortOptions) | undefined) => Promise; put: (block: Uint8Array | import("../../interface/basic").Block, options?: (import("./put").PutOptions & import("../../utils").AbortOptions) | undefined) => Promise; rm: (cids: import("cids") | import("cids")[], options?: (import("./rm").RmOptions & import("../../utils").AbortOptions) | undefined) => AsyncIterable; stat: (cid: import("cids"), options?: (import("./stat").StatOptions & import("../../utils").AbortOptions) | undefined) => Promise; } declare namespace BlockAPI { export { Preload, BlockService, GCLock, Pin, PinManager, AbortOptions, CID, IPLDBlock }; } type Preload = ((() => void) & { start: () => void; stop: () => void; }) | { (path: string | import("cids")): Promise; start(): void; stop(): void; }; type BlockService = import("../../interface/block-service").BlockService; type GCLock = { readLock: () => Promise<() => void>; writeLock: () => Promise<() => void>; }; type Pin = import("../pin"); type PinManager = import("../pin/pin-manager"); 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; }; type CID = import("cids"); type IPLDBlock = import("../../interface/basic").Block; //# sourceMappingURL=index.d.ts.map