import { StaticJsonRpcProvider } from '@ethersproject/providers'; import { Dispatch, FC, SetStateAction } from 'react'; interface IAddressInputProps { autoFocus?: boolean; ensProvider: StaticJsonRpcProvider | undefined; placeholder?: string; address: string | undefined; onChange?: Dispatch>; hideScanner?: boolean; } /** * Displays an address input with QR scan option ~ Features ~ - Provide ensProvider={mainnetProvider} and your address will be replaced by ENS name (ex. "0xa870" => "user.eth") or you can enter directly ENS name instead of address - Provide placeholder="Enter address" value for the input - Value of the address input is stored in value={toAddress} - Control input change by onChange={setToAddress} or onChange={address => { setToAddress(address);}} * @param props * @returns (FC) */ export declare const AddressInput: FC; export {}; //# sourceMappingURL=AddressInput.d.ts.map