import { PropsWithChildren } from 'react'; import { AddEthereumChainParameter } from 'metamask-react/lib/metamask-context'; import { HintPreferences } from '@flashbots/mev-share-client'; export declare const mungeHintsForRpcUrl: (hints?: HintPreferences) => { calldata: boolean | undefined; contract_address: boolean | undefined; function_selector: boolean | undefined; logs: boolean | undefined; default_logs: boolean | undefined; hash: boolean | undefined; }; export interface ProtectButtonOptions extends PropsWithChildren { /** Callback from useMetaMask() */ addChain?: (chain: AddEthereumChainParameter) => Promise; /** Specify data to share; if undefined, uses default [Stable config](https://docs.flashbots.net/flashbots-protect/rpc/mev-share#stable-configuration) */ hints?: HintPreferences; /** ID for iterative bundle-building (default: undefined) */ bundleId?: string; /** Chain to connect to (default: 1) */ chainId?: number; /** Selected builders that are permitted to build blocks using the client's transactions. */ builders?: Array; /** `fast` mode enables all supported builders implicitly. Setting `fast` will override `builders`. */ fast?: boolean; } export declare const generateRpcUrl: ({ chainId, hints, bundleId, builders, fast, }: ProtectButtonOptions) => URL; /** * Button that connects Metamask to Flashbots Protect when it's clicked. */ declare const FlashbotsProtectButton: ({ addChain, hints, bundleId, chainId, children, builders, fast, }: ProtectButtonOptions) => import("react/jsx-runtime").JSX.Element; export default FlashbotsProtectButton; //# sourceMappingURL=button.d.ts.map