//
//  XTTextRecolorationTemplate.h
//  XTads
//
//  Created by Rune Berg on 02/05/2020.
//  Copyright © 2020 Rune Berg. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "XTOutputFormatter.h"
#import "XTOutputTextColorResult.h"


//NS_ASSUME_NONNULL_BEGIN

@interface XTTextRecolorationTemplate : NSObject

+ (instancetype)forTextStorage:(NSTextStorage *)textStorage;

- (void)recolorForAttribute:(NSString *)attrName callback:(void(^)(NSRange, XTOutputTextColorResult *, XTColorSource))callback;

- (void)recolorForAttribute4:(NSString *)attrName callback:(void(^)(NSRange range, id attrValue))callback;

@end

//NS_ASSUME_NONNULL_END
