import React from "react"; import { IconProps } from "../../icons"; import { AddressDisplay } from "../../utils"; import { AvatarImageProps } from "../Avatar"; import { FlexCenterProps } from "../FlexCenter"; export type AccountLockupProps = { /** * Pass in a custom badge component if needed. Otherwise, renders a default badge when badge is present. */ badge?: React.ReactNode; /** * The address of the account */ address: string; /** * Whether to display the address in standard or compact form */ addressDisplay?: AddressDisplay; /** * This can either be the username of the account or an ens name for example. If provided, will take precedence over * the address */ displayName?: string; /** * The avatar image url of the account */ imageUrl?: string; /** * Decides whether or not to show the verified badge. */ isVerified?: boolean | null; /** * Supply children when you want to override the default Text behavior */ children?: React.ReactNode; /** * Pass in a custom avatar component if needed. Otherwise, renders a default avatar when imageUrl is present. */ avatar?: React.ReactNode; /** * Whether to display the avatar by default * NOTE: passing renderAvatar will ignore this value and always call renderAvatar() */ withAvatar?: boolean; } & FlexCenterProps; export declare const AccountLockup: React.ForwardRefExoticComponent<{ /** * Pass in a custom badge component if needed. Otherwise, renders a default badge when badge is present. */ badge?: React.ReactNode; /** * The address of the account */ address: string; /** * Whether to display the address in standard or compact form */ addressDisplay?: AddressDisplay; /** * This can either be the username of the account or an ens name for example. If provided, will take precedence over * the address */ displayName?: string; /** * The avatar image url of the account */ imageUrl?: string; /** * Decides whether or not to show the verified badge. */ isVerified?: boolean | null; /** * Supply children when you want to override the default Text behavior */ children?: React.ReactNode; /** * Pass in a custom avatar component if needed. Otherwise, renders a default avatar when imageUrl is present. */ avatar?: React.ReactNode; /** * Whether to display the avatar by default * NOTE: passing renderAvatar will ignore this value and always call renderAvatar() */ withAvatar?: boolean; } & Omit, "height" | "width"> & import("../..").TextColorVariantProps & React.RefAttributes> & { Avatar: ({ className, size, ...rest }: Omit) => React.JSX.Element; Text: () => string; Badge: ({ className, size, ...rest }: IconProps & { innerFill?: IconProps["fill"]; }) => React.JSX.Element; }; //# sourceMappingURL=AccountLockup.d.ts.map