//
//  KBStreamOverlayView.h
//  自带关闭按钮的流式展示层，内部持有 KBStreamTextView。
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@class KBStreamTextView, KBStreamOverlayView;

@protocol KBStreamOverlayViewDelegate <NSObject>
@optional
- (void)streamOverlayDidTapClose:(KBStreamOverlayView *)overlay;
@end

@interface KBStreamOverlayView : UIView

@property (nonatomic, strong, readonly) KBStreamTextView *textView;
@property (nonatomic, weak, nullable) id<KBStreamOverlayViewDelegate> delegate;

- (void)appendChunk:(NSString *)text;
- (void)finish;

@end

NS_ASSUME_NONNULL_END

