#import "TGViewController.h" @class TGImageInfo; @class TGSuggestionContext; @interface TGWebSearchController : TGViewController @property (nonatomic, copy) void (^avatarCompletionBlock)(UIImage *); @property (nonatomic, copy) void (^completionBlock)(TGWebSearchController *sender); @property (nonatomic, copy) void (^dismiss)(void); @property (nonatomic, weak) TGNavigationController *parentNavigationController; @property (nonatomic, readonly) bool avatarSelection; @property (nonatomic, assign) bool captionsEnabled; @property (nonatomic, strong) TGSuggestionContext *suggestionContext; - (instancetype)initForAvatarSelection:(bool)avatarSelection embedded:(bool)embedded; - (NSArray *)selectedItemSignals:(id (^)(id, NSString *))imageDescriptionGenerator; + (void)clearRecents; + (void)addRecentSelectedItems:(NSArray *)items; - (void)presentEmbeddedInController:(UIViewController *)controller animated:(bool)animated; - (void)dismissEmbeddedAnimated:(bool)animated; @end