/** * Hashing helpers for the OpenClaw adapter. * Delegates to @clawtrail/context-graph's Hasher. */ import { sha256, hashContent } from "@clawtrail/context-graph"; export { sha256, hashContent }; /** Hash tool arguments (always hash, never store raw) */ export declare function hashArgs(args: unknown): string; /** Hash command string */ export declare function hashCommand(cmd: string): string; /** Hash file content or diff */ export declare function hashFileContent(content: string | Buffer): string; /** * Extract the base command name from a full command string. * "npm test --coverage" → "npm test" * "npx vitest run" → "npx vitest" * "cd /path && curl -X POST ..." → "curl" * "cd /path && node -e ..." → "node -e" */ export declare function extractBaseCommand(cmd: string): string; /** Get MIME type from file extension */ export declare function mimeFromExtension(ext: string): string; /** Map file extension to language name */ export declare function extensionToLanguage(ext: string): string; //# sourceMappingURL=hash.d.ts.map