import type { Unit, Result } from '@ucanto/interface'; import { StorageGetError, StoragePutError } from '@storacha/capabilities/types'; export type { StorageGetError, StoragePutError }; export interface Storage { /** * Puts a record in the store. */ put: (record: Rec) => Promise>; /** * Gets a record from the store. */ get: (key: RecKey) => Promise>; /** * Determine if a record already exists in the store for the given key. */ has: (key: RecKey) => Promise>; } //# sourceMappingURL=storage.d.ts.map