packfs-core
Version:
Semantic filesystem operations for LLM agent frameworks with natural language understanding. See LLM_AGENT_GUIDE.md for copy-paste examples.
20 lines • 906 B
TypeScript
import { CompressionStrategy, CompressionHints, CompressedChunk } from './CompressionStrategy';
/**
* Zstd compression strategy - provides excellent balance between compression ratio and speed
*/
export declare class ZstdStrategy extends CompressionStrategy {
readonly name = "zstd";
readonly priority: "balanced";
readonly supportsStreaming = true;
private compressionLevel;
constructor(compressionLevel?: number);
compress(data: Buffer, hints: CompressionHints): Promise<CompressedChunk>;
decompress(chunk: CompressedChunk): Promise<Buffer>;
createDecompressor(chunk: CompressedChunk): NodeJS.ReadableStream;
estimateRatio(_data: Buffer, hints: CompressionHints): number;
shouldUse(data: Buffer, hints: CompressionHints): boolean;
private getCompressionLevel;
private isStructuredData;
private isCodeFile;
}
//# sourceMappingURL=ZstdStrategy.d.ts.map