// Generated by dts-bundle-generator v9.5.1 // @ts-nocheck import { z } from 'zod'; export declare enum NativeMessage { HardwareBackPress = 'hardwareBackPress', WebViewNavigate = 'webViewNavigate', } export type ShopQRCode = { from?: string; shopName?: string; shopWalletAddr?: string; bankCode?: string; payAmount?: string; }; export type WalletQRCode = { walletAddr?: string; bankCode?: string; exptime?: string; }; export type NativeDialog = { message?: string; onConfirmClick?: string; onCancelClick?: string; title?: string; buttonLabel?: string[]; open?: boolean; }; export type AllQRCode = ShopQRCode & WalletQRCode; export type QRCodeType = ShopQRCode | WalletQRCode; export type AppBridgeState = { scannedQRCode: AllQRCode; setQRCode(QRCode: QRCodeType): Promise; resetQRCode(): Promise; openInAppBrowser: (url: string) => Promise; nativeDialog: NativeDialog; setNativeDialog(nativeDialog: NativeDialog): Promise; resetNativeDialog(): Promise; }; export type AppPostMessageSchema = typeof appSchema; export declare const appSchema: import('@webview-bridge/react-native').ParserSchema<{ hardwareBackPress: z.ZodObject< { webViewCanGoBack: z.ZodBoolean; }, 'strip', z.ZodTypeAny, { webViewCanGoBack?: boolean; }, { webViewCanGoBack?: boolean; } >; webViewNavigate: z.ZodObject< { path: z.ZodString; }, 'strip', z.ZodTypeAny, { path?: string; }, { path?: string; } >; }>; export declare const appBridge: import('@webview-bridge/react-native').BridgeStore; export type AppBridge = typeof appBridge; export declare const WebView: import('react').ForwardRefExoticComponent< import('react-native-webview/lib/WebViewTypes').IOSWebViewProps & import('react-native-webview/lib/WebViewTypes').AndroidWebViewProps & import('react-native-webview/lib/WebViewTypes').WindowsWebViewProps & import('react').RefAttributes >, linkWebMethod: () => { current: import('@webview-bridge/react-native').WebMethod; }, postMessage: < EventName extends NativeMessage, Args extends EventName extends NativeMessage ? import('@webview-bridge/react-native').ParserSchema<{ hardwareBackPress: z.ZodObject< { webViewCanGoBack: z.ZodBoolean; }, 'strip', z.ZodTypeAny, { webViewCanGoBack?: boolean; }, { webViewCanGoBack?: boolean; } >; webViewNavigate: z.ZodObject< { path: z.ZodString; }, 'strip', z.ZodTypeAny, { path?: string; }, { path?: string; } >; }>[EventName]['schema'] extends z.ZodTypeAny ? z.TypeOf< import('@webview-bridge/react-native').ParserSchema<{ hardwareBackPress: z.ZodObject< { webViewCanGoBack: z.ZodBoolean; }, 'strip', z.ZodTypeAny, { webViewCanGoBack?: boolean; }, { webViewCanGoBack?: boolean; } >; webViewNavigate: z.ZodObject< { path: z.ZodString; }, 'strip', z.ZodTypeAny, { path?: string; }, { path?: string; } >; }>[EventName]['schema'] > : import('@webview-bridge/react-native').ParserSchema<{ hardwareBackPress: z.ZodObject< { webViewCanGoBack: z.ZodBoolean; }, 'strip', z.ZodTypeAny, { webViewCanGoBack?: boolean; }, { webViewCanGoBack?: boolean; } >; webViewNavigate: z.ZodObject< { path: z.ZodString; }, 'strip', z.ZodTypeAny, { path?: string; }, { path?: string; } >; }>[EventName]['schema'] extends YupTypeAny ? yupInfer : import('@webview-bridge/react-native').ParserSchema<{ hardwareBackPress: z.ZodObject< { webViewCanGoBack: z.ZodBoolean; }, 'strip', z.ZodTypeAny, { webViewCanGoBack?: boolean; }, { webViewCanGoBack?: boolean; } >; webViewNavigate: z.ZodObject< { path: z.ZodString; }, 'strip', z.ZodTypeAny, { path?: string; }, { path?: string; } >; }>[EventName]['schema'] extends Struct ? SupertructInfer : | import('@webview-bridge/react-native').Primitive | Record : never, >( eventName: EventName, args: Args, ) => void; export {};