Applies heuristic rule to an operation on a document and returns resulting Delta.
document
Delta? applyRule( Document document, int index, { int? len, Object? data, Attribute? attribute, });