import { ClientProps } from '../client'; /** * Holds properties and methods used by client extensions, but that we don't * want users to have access to. */ export type Core = ReturnType; export declare const createCore: (props: ClientProps) => { /** * Debug properties */ debug: { webview?: boolean | undefined; messageTransport?: boolean | undefined; loggerLevel?: import("dist/packages/logger/src").LogLevel | undefined; } | undefined; /** * Allows an extension to add its name to the list, such that * other extensions are able to detect if it is present. * * Ex: ViemExtension adds "viem" to the list, and WagmiExtension later * checks this list and throws an error if it doesn't find "viem" there. */ declaredExtensionNames: string[]; /** * The environment ID of the client */ environmentId: string; /** * SDK session ID */ hostSdkSessionId: string; /** * SDK initialization module handles the initialization error */ initialization: import("./modules/initializationModule/initializationModule").InitializationModule; /** * Manages the manifest of the host */ manifest: { setAppOrigin: (appOrigin: string) => string; setPlatform: (platform: "browser" | "react-native" | "flutter" | "swift" | "kotlin" | "unity") => void; setRedirectUrl: (redirectUrl: string) => string; }; /** * Message transport that will be used to send and receive messages to the webview. * Should preferably be used with createRequestChannel, rather than used directly. * * Note: Doesn't implement forwarding messages to/from webview yet. * The user is expected to extend the client with an Extension that implements that. */ messageTransport: import("dist/packages/message-transport/src/messageTransport/decorators/applyRecoveryManager").WithRecoveryManager void; unblock: () => void; block: () => void; isBlocked: () => boolean; } & { defaultOrigin: "webview" | "host"; emit: (message: import("@dynamic-labs/message-transport").MessageTransportDataOptionalOrigin) => void; }>; /** * Registers the webview load controller created by the platform * extension. The client (and its modules, e.g. `client.sdk.loadState`) * is created before the controller exists, so the controller is handed * over through this slot once the extension sets it up. */ registerWebViewLoadController: (controller: import("./modules/webViewLoadControllerRegistry").RegisteredWebViewLoadController) => void; /** * Registration slot for the webview load controller. Modules read the * controller lazily via `getController()` and subscribe to * `onRegistered` to bridge its events. */ webViewLoadControllerRegistry: import("./modules/webViewLoadControllerRegistry").WebViewLoadControllerRegistry; };