HEX
Server: nginx/1.24.0
System: Linux nowruzgan 6.8.0-57-generic #59-Ubuntu SMP PREEMPT_DYNAMIC Sat Mar 15 17:40:59 UTC 2025 x86_64
User: babak (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/dev/shahnamag/back-end/node_modules/fast-diff/diff.d.ts
declare function diff(
  text1: string,
  text2: string,
  cursorPos?: number | diff.CursorInfo,
  cleanup?: boolean
): diff.Diff[];

declare namespace diff {
  type Diff = [-1 | 0 | 1, string];

  const DELETE: -1;
  const INSERT: 1;
  const EQUAL: 0;

  interface CursorInfo {
    oldRange: { index: number; length: number };
    newRange: { index: number; length: number };
  }
}

export = diff;