import type { CodeChunk } from "../types.js";
/**
 * Derive the chunk ndjson path from the index path.
 * {hash}.index.json → {hash}.chunks.ndjson
 */
export declare function getChunkPath(indexPath: string): string;
/**
 * Derive the chunk-embedding ndjson path from the index path.
 * {hash}.index.json → {hash}.chunk-embeddings.ndjson
 */
export declare function getChunkEmbeddingPath(indexPath: string): string;
/**
 * Save all chunks atomically as ndjson.
 * File: ~/.codesift/{hash}.chunks.ndjson
 */
export declare function saveChunks(chunkPath: string, chunks: CodeChunk[]): Promise<void>;
/**
 * Load all chunks from an ndjson file.
 * Returns a Map of chunkId → CodeChunk, or null if file not found.
 */
export declare function loadChunks(chunkPath: string): Promise<Map<string, CodeChunk> | null>;
/**
 * Save all chunk embeddings atomically as ndjson.
 * File: ~/.codesift/{hash}.chunk-embeddings.ndjson
 */
export declare function saveChunkEmbeddings(embeddingPath: string, embeddings: Map<string, Float32Array>): Promise<void>;
/**
 * Load all chunk embeddings from an ndjson file.
 * Returns a Map of chunkId → Float32Array, or null if file not found / empty.
 */
export declare function loadChunkEmbeddings(embeddingPath: string): Promise<Map<string, Float32Array> | null>;
//# sourceMappingURL=chunk-store.d.ts.map