import { ReactNode } from 'react'; import { ConnectWalletProps } from '../../wallet'; type ConnectWalletFallbackProps = Omit>; type ConnectedBaseProps = { /** * The content to render when there is a connected account. */ children: ReactNode; /** * The content to render when there is no connected account. * If undefined, defaults to rendering the `` button. * Pass `null` to render nothing. */ fallback?: TFallback; /** * If defined, the content to render when there is no connected account * and `useAccount().status` is "connecting". */ connecting?: ReactNode; }; export type ConnectedProps = TFallback extends undefined ? ConnectedBaseProps & ConnectWalletFallbackProps : ConnectedBaseProps; /** * Renders children only when there is no currently connected account. * Otherwise, renders the fallback. * * If no fallback is provided, the `` button is rendered and * this component will accept passthrough props to forward to the `` button. */ export declare function Connected({ children, fallback, connecting, }: ConnectedProps): ReactNode; export {}; //# sourceMappingURL=Connected.d.ts.map