import { EncryptedBlob, MEKernelLike, SemanticPath } from './types.js'; import { ColumnarChunkEnvelope } from './secret-storage-columnar.js'; export type DecryptedChunkData = any | ColumnarChunkEnvelope; export declare function isColumnarChunkData(data: unknown): data is ColumnarChunkEnvelope; export declare function readDecryptedChunkItem(data: DecryptedChunkData, index: number): any; export declare function readDecryptedChunkRange(data: DecryptedChunkData, start: number, end: number): any[]; export declare function materializeDecryptedChunk(data: DecryptedChunkData): any; export declare function chunkCacheKey(scopeKey: string, chunkId: string): string; export declare function clearScopeChunkCache(self: MEKernelLike, scopeKey: string): void; export declare function createBranchContainerForRel(rel: SemanticPath): any; export declare function getChunkId(self: MEKernelLike, path: SemanticPath, scope: SemanticPath): string; export declare function getChunkRelativePath(self: MEKernelLike, path: SemanticPath, scope: SemanticPath): SemanticPath; export declare function getLegacyChunkIdForPath(_self: MEKernelLike, path: SemanticPath, scope: SemanticPath): string | null; export declare function setAtPath(obj: any, rel: SemanticPath, value: any): void; export declare function flattenLeaves(node: any, rel: SemanticPath, out: Array<{ rel: SemanticPath; value: any; }>): void; export declare function migrateLegacyScopeToChunks(self: MEKernelLike, scope: SemanticPath, legacyBlob: EncryptedBlob, scopeSecret: string): void; export declare function ensureScopeChunks(self: MEKernelLike, scope: SemanticPath, scopeSecret: string): Record; export declare function getChunkBlob(self: MEKernelLike, scope: SemanticPath, chunkId: string): EncryptedBlob | undefined; export declare function setChunkBlob(self: MEKernelLike, scope: SemanticPath, chunkId: string, blob: EncryptedBlob, scopeSecret: string): void; export declare function listEncryptedScopes(self: MEKernelLike): string[]; export declare function deleteEncryptedScope(self: MEKernelLike, scopeKey: string): void; export declare function primeDecryptedBranchCache(self: MEKernelLike, scope: SemanticPath, chunkId: string, data: any): void; export declare function getDecryptedChunk(self: MEKernelLike, scope: SemanticPath, scopeSecret: string, chunkId: string): DecryptedChunkData | undefined;