/** * Copyright (c) 2025 Elara AI Pty Ltd * Licensed under BSL 1.1. See LICENSE for details. */ import type { ObjectStore } from '../interfaces.js'; /** * Atomically write an object to the repository. * * @param repoPath - Path to e3 repository * @param data - Data to store * @returns SHA256 hash of the data */ export declare function objectWrite(repoPath: string, data: Uint8Array): Promise; /** * Atomically write a stream to the repository. * * @param repoPath - Path to e3 repository * @param stream - Stream to store * @returns SHA256 hash of the data */ export declare function objectWriteStream(repoPath: string, stream: ReadableStream): Promise; /** * Read an object from the repository. * * @param repoPath - Path to e3 repository * @param hash - SHA256 hash of the object * @returns Object data * @throws {ObjectNotFoundError} If object not found */ export declare function objectRead(repoPath: string, hash: string): Promise; /** * Check if an object exists in the repository. * * @param repoPath - Path to e3 repository * @param hash - SHA256 hash of the object * @returns true if object exists */ export declare function objectExists(repoPath: string, hash: string): Promise; /** * Local filesystem implementation of ObjectStore. * * The `repo` parameter is the path to the e3 repository directory. */ export declare class LocalObjectStore implements ObjectStore { write(repo: string, data: Uint8Array): Promise; writeStream(repo: string, stream: AsyncIterable): Promise; read(repo: string, hash: string): Promise; exists(repo: string, hash: string): Promise; stat(repo: string, hash: string): Promise<{ size: number; }>; list(repo: string): Promise; count(repo: string): Promise; } //# sourceMappingURL=LocalObjectStore.d.ts.map