/** * Utilities for ETag-based optimistic concurrency control * * ETags allow agents to safely read-modify-write Memory Bank files * by detecting concurrent modifications. This prevents data loss * when multiple agents work on the same files. */ export declare class ETagUtils { /** * Calculates an ETag for the given content * * Uses SHA-256 hash of the content, truncated to 16 characters * for a practical balance between collision resistance and readability. * * @param content - Content to calculate ETag for * @returns ETag string (16-character hex string) */ static calculateETag(content: string): string; /** * Validates that the given content matches the expected ETag * * @param content - Content to validate * @param expectedETag - Expected ETag value * @returns True if the ETag matches, false otherwise */ static validateETag(content: string, expectedETag: string): boolean; /** * Creates a response object with content and ETag * * @param content - File content * @returns Object with content and etag properties */ static withETag(content: string): { content: string; etag: string; }; } //# sourceMappingURL=ETagUtils.d.ts.map