| 1 |
import { type Direction, type Selection } from './utils'; |
| 2 |
export type ActionDetailsOptions = Pick<ActionDetails, 'value' | 'cursorPos' | 'oldValue' | 'oldSelection'>; |
| 3 |
/** Provides details of changing input */ |
| 4 |
export default class ActionDetails { |
| 5 |
/** Current input value */ |
| 6 |
value: string; |
| 7 |
/** Current cursor position */ |
| 8 |
cursorPos: number; |
| 9 |
/** Old input value */ |
| 10 |
oldValue: string; |
| 11 |
/** Old selection */ |
| 12 |
oldSelection: Selection; |
| 13 |
constructor(opts: ActionDetailsOptions); |
| 14 |
/** Start changing position */ |
| 15 |
get startChangePos(): number; |
| 16 |
/** Inserted symbols count */ |
| 17 |
get insertedCount(): number; |
| 18 |
/** Inserted symbols */ |
| 19 |
get inserted(): string; |
| 20 |
/** Removed symbols count */ |
| 21 |
get removedCount(): number; |
| 22 |
/** Removed symbols */ |
| 23 |
get removed(): string; |
| 24 |
/** Unchanged head symbols */ |
| 25 |
get head(): string; |
| 26 |
/** Unchanged tail symbols */ |
| 27 |
get tail(): string; |
| 28 |
/** Remove direction */ |
| 29 |
get removeDirection(): Direction; |
| 30 |
} |
| 31 |
//# sourceMappingURL=action-details.d.ts.map |