import '../external-rpc/jsc-polyfills/index.ts';
import * as AttestorRPCImport from '../external-rpc/index.ts';
declare global {
    /**
     * `sendMessage` function should be provided by the host of the JS environment for sending messages to host
     */
    function sendMessage(channelName: string, message: any): void | Promise<void>;
    var AttestorRPC: typeof AttestorRPCImport & {
        /**
         * Sets up the library to run in JS environments like QuickJS or JavascriptCore.
         *
         * RPC will communicate with user by sending messages using `AttestorRPCChannel` by `<channel>.postMessage(message: string)`,
         * for example: `globalThis['attestor-core'].postMessage(message: string)`.
         *
         * @param baseUrl
         * @param channel The name of the channel for sending messages. Default channel is 'attestor-core'.
         */
        setupJsRpc(baseUrl: string, channel?: string): void;
    };
}
/**
 * Sets up the library to run in JS environments like QuickJS or JavascriptCore.
 */
export declare function setupJsRpc(baseUrl: string, channel?: string): void;
