@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
12 lines • 524 B
TypeScript
/**
* How alike two blobs are, 0 to 100, matching dulwich's own score.
*
* The two implementations have to agree digit for digit or rename detection
* diverges between the languages at the 60% threshold: a move-plus-edit would
* read as one rename on one side and as an add beside a delete on the other.
*
* Two empty blobs are perfectly alike, which is the one case a ratio cannot
* express.
*/
export declare function similarityScore(a: Uint8Array, b: Uint8Array): number;
//# sourceMappingURL=similarity.d.ts.map