#import <UIKit/UIKit.h>
#if __has_include(<TencentQianWebView/TQWebViewConfig.h>)
#import <TencentQianWebView/TQWebViewConfig.h>
#else
#import "TQWebViewConfig.h"
#endif
#if __has_include(<TencentQianWebView/TQSignCallbacks.h>)
#import <TencentQianWebView/TQSignCallbacks.h>
#else
#import "TQSignCallbacks.h"
#endif

NS_ASSUME_NONNULL_BEGIN

/// SDK 内置容器 ViewController。
///
/// **不要由客户直接 init**;走 ``TQWebView/openFromPresenter:url:config:callbacks:animated:completion:`` 入口。
@interface TQWebViewController : UIViewController

@property (nonatomic, copy, readonly) NSString *url;
@property (nonatomic, copy, readonly) TQWebViewConfig *config;
@property (nonatomic, strong, readonly) TQSignCallbacks *callbacks;

- (instancetype)initWithUrl:(NSString *)url
                     config:(TQWebViewConfig *)config
                  callbacks:(TQSignCallbacks *)callbacks NS_DESIGNATED_INITIALIZER;

- (instancetype)initWithCoder:(NSCoder *)coder NS_UNAVAILABLE;
- (instancetype)initWithNibName:(nullable NSString *)nibNameOrNil
                         bundle:(nullable NSBundle *)nibBundleOrNil NS_UNAVAILABLE;

@end

NS_ASSUME_NONNULL_END
