import { AccountId, AccountIndex, Address } from '@polkadot/types'; import { I18nProps } from './types'; import BN from 'bn.js'; import React from 'react'; import { BalanceActiveType } from './AddressInfo'; export declare type RowProps = { bonded?: BN | Array; buttons?: React.ReactNode; children?: React.ReactNode; className?: string; defaultName?: string; extraInfo?: React.ReactNode; isEditable?: boolean; isInline?: boolean; value: AccountId | AccountIndex | Address | string | null; withBalance?: boolean | BalanceActiveType; withIcon?: boolean; withIndex?: boolean; withTags?: boolean; }; declare type Props = I18nProps & RowProps & { accounts_idAndIndex?: [AccountId?, AccountIndex?]; }; declare type State = { address: string; isEditingName: boolean; isEditingTags: boolean; name: string; tags: string[]; }; declare const DEFAULT_ADDR: string; declare class AddressRow extends React.PureComponent { state: State; constructor(props: Props); static defaultProps: { defaultName: string; }; static getDerivedStateFromProps({ accounts_idAndIndex, defaultName, value }: Props, prevState: State): State | null; render(): JSX.Element; private createState; protected renderAddress(): JSX.Element; protected renderButtons(): JSX.Element | null; protected renderName(): JSX.Element; protected onChangeName: (name: string) => void; protected onChangeTags: (tags: string[]) => void; protected renderAccountIndex(): JSX.Element | null; protected renderBalances(): JSX.Element | null; protected renderChildren(): JSX.Element | null; protected renderEditIcon(): JSX.Element; protected renderIcon(): JSX.Element | null; protected renderSaveIcon(callback: () => void): JSX.Element; protected renderTags(): JSX.Element | null; protected saveName: () => void; protected saveTags: () => void; protected toggleNameEditor: () => void; protected toggleTagsEditor: () => void; } export { DEFAULT_ADDR, AddressRow }; declare const _default: React.ComponentType; export default _default;