///
import { AccountAddressT, DeriveHWSigningKeyInput, DeriveNextInput, SigningKeychainT } from "../account/index";
import { AmountT, Network } from "../primitives/index";
import * as fromApi from "./api/index";
import { Observable } from "rxjs";
import { KeystoreT, MnemomicT } from "../crypto/index";
import { AddAccountByPrivateKeyInput, AccountsT, WalletT, AccountT, MakeTransactionOptions, SwitchAccountInput, TxMessage } from "./_types";
import { LogLevel, RadixError } from "../util/index";
import { ExecutedTransaction, SimpleExecutedTransaction, TransactionHistory, TransactionIdentifierT } from "./dto/index";
import { Result, ResultAsync } from "neverthrow";
import { ResourceIdentifierT, ValidatorAddressT } from "../account/index";
import { SendTxOutput } from "./transaction/_types";
export declare const Radix: {
create: () => {
api: () => Promise<{
validators: (network: string) => ResultAsync;
lookupValidator: (input: ValidatorAddressT) => ResultAsync<{
address: ValidatorAddressT;
ownerAddress: AccountAddressT;
name: string;
infoURL?: URL | undefined;
totalDelegatedStake: AmountT;
ownerDelegation: AmountT;
validatorFee: number;
registered: boolean;
isExternalStakeAccepted: boolean;
uptimePercentage: number;
proposalsMissed: number;
proposalsCompleted: number;
}, RadixError[]>;
networkId: () => ResultAsync;
tokenBalancesForAddress: (address: AccountAddressT) => ResultAsync;
transactionHistory: ({ address, size: limit, cursor, }: import("./dto").TransactionHistoryRequestInput) => ResultAsync;
nativeToken: (input: import("@networking").TokenNativeRequest) => ResultAsync;
tokenInfo: (rri: Readonly<{
hash: Buffer;
__witness: "isRRI";
network: Network;
name: string;
toPrimitive: () => string;
equals: (other: Readonly) => boolean;
}>) => ResultAsync;
stakesForAddress: (address: AccountAddressT) => ResultAsync;
unstakesForAddress: (address: AccountAddressT) => ResultAsync;
transactionStatus: (txID: Readonly<{
__witness: "isTXId";
__hex: string;
toPrimitive: () => string;
equals: (other: Readonly) => boolean;
}>, network: string) => ResultAsync;
buildTransaction: (from: AccountAddressT) => (transactionIntent: import("./dto").TransactionIntent) => ResultAsync;
finalizeTransaction: (network: string, signedTransaction: import("./dto").SignedTransaction) => ResultAsync;
submitSignedTransaction: (network: string, finalizedTx: import("./dto").FinalizedTransaction) => ResultAsync;
} | fromApi.RadixAPI>;
__wallet: Observable MnemomicT;
restoreLocalHDAccountsToIndex: (index: number) => Observable import("prelude-ts").Option;
getAnyAccountByPublicKey: (publicKey: Readonly<{
__hex: string;
asData: (input: {
readonly compressed: boolean;
}) => Buffer;
toString: (compressed?: boolean | undefined) => string;
isValidSignature: (input: Readonly<{
signature: import("@crypto").SignatureT;
hashedMessage: Buffer;
}>) => boolean;
decodeToPointOnCurve: () => Readonly<{
x: import("@radixdlt/uint256").UInt256;
y: import("@radixdlt/uint256").UInt256;
toBuffer: (includePrefixByte?: boolean | undefined) => Buffer;
toString: (includePrefixByte?: boolean | undefined) => string;
equals: (other: Readonly) => boolean;
add: (other: Readonly) => Readonly;
multiply: (by: import("@radixdlt/uint256").UInt256) => Readonly;
multiplyWithPrivateKey: (privateKey: import("@crypto").PrivateKeyT) => Readonly;
}>;
equals: (other: Readonly) => boolean;
}>) => import("prelude-ts").Option;
all: AccountT[];
accountsWithNonHDSigningKeys: () => AccountT[];
accountsWithLocalHDSigningKeys: () => AccountT[];
accountsWithHardwareHDSigningKeys: () => AccountT[];
accountsWithHDSigningKeys: () => AccountT[];
size: () => number;
}>>;
deriveNextLocalHDAccount: (input?: DeriveNextInput) => Observable;
deriveHWAccount: (input: DeriveHWSigningKeyInput) => Observable;
displayAddressForActiveHWAccountOnHWDeviceForVerification: () => Observable;
addAccountFromPrivateKey: (input: import("@account").AddSigningKeyByPrivateKeyInput) => Observable;
switchAccount: (input: SwitchAccountInput) => AccountT;
observeActiveAccount: () => Observable;
observeAccounts: () => Observable import("prelude-ts").Option;
getAnyAccountByPublicKey: (publicKey: Readonly<{
__hex: string;
asData: (input: {
readonly compressed: boolean;
}) => Buffer;
toString: (compressed?: boolean | undefined) => string;
isValidSignature: (input: Readonly<{
signature: import("@crypto").SignatureT;
hashedMessage: Buffer;
}>) => boolean;
decodeToPointOnCurve: () => Readonly<{
x: import("@radixdlt/uint256").UInt256;
y: import("@radixdlt/uint256").UInt256;
toBuffer: (includePrefixByte?: boolean | undefined) => Buffer;
toString: (includePrefixByte?: boolean | undefined) => string;
equals: (other: Readonly) => boolean;
add: (other: Readonly) => Readonly;
multiply: (by: import("@radixdlt/uint256").UInt256) => Readonly;
multiplyWithPrivateKey: (privateKey: import("@crypto").PrivateKeyT) => Readonly;
}>;
equals: (other: Readonly) => boolean;
}>) => import("prelude-ts").Option;
all: AccountT[];
accountsWithNonHDSigningKeys: () => AccountT[];
accountsWithLocalHDSigningKeys: () => AccountT[];
accountsWithHardwareHDSigningKeys: () => AccountT[];
accountsWithHDSigningKeys: () => AccountT[];
size: () => number;
}>>;
}>>;
__reset: () => void;
__withNodeConnection: (url$: Observable) => any;
__withAPI: (RadixAPI$: Observable) => any;
__withWallet: (wallet: WalletT) => any;
__withKeychain: (signingKeychain: SigningKeychainT) => any;
connect: (url: string) => Promise;
withKeystore: (keystore: KeystoreT, password: string) => Promise>;
login: (password: string, loadKeystore: () => Promise) => any;
deriveNextAccount: (input?: DeriveNextInput) => any;
deriveHWAccount: (input: DeriveHWSigningKeyInput) => Observable;
displayAddressForActiveHWAccountOnHWDeviceForVerification: () => Observable;
addAccountFromPrivateKey: (input: AddAccountByPrivateKeyInput) => any;
switchAccount: (input: SwitchAccountInput) => any;
restoreLocalHDAccountsToIndex: (index: number) => Observable;
decryptTransaction: (input: SimpleExecutedTransaction) => Observable;
logLevel: (level: LogLevel) => any;
transactionStatus: (txID: TransactionIdentifierT, trigger: Observable) => Observable;
revealMnemonic: () => Observable;
activeAddress: Observable Buffer;
toString: (compressed?: boolean | undefined) => string;
isValidSignature: (input: Readonly<{
signature: import("@crypto").SignatureT;
hashedMessage: Buffer;
}>) => boolean;
decodeToPointOnCurve: () => Readonly<{
x: import("@radixdlt/uint256").UInt256;
y: import("@radixdlt/uint256").UInt256;
toBuffer: (includePrefixByte?: boolean | undefined) => Buffer;
toString: (includePrefixByte?: boolean | undefined) => string;
equals: (other: Readonly) => boolean;
add: (other: Readonly) => Readonly;
multiply: (by: import("@radixdlt/uint256").UInt256) => Readonly;
multiplyWithPrivateKey: (privateKey: import("@crypto").PrivateKeyT) => Readonly;
}>;
equals: (other: Readonly) => boolean;
}>;
toPrimitive: () => string;
equals: (other: Readonly) => boolean;
}> & Readonly<{
addressType: import("@account").AddressTypeT.ACCOUNT;
equals: (other: AccountAddressT) => boolean;
}>>;
activeAccount: Observable;
accounts: Observable import("prelude-ts").Option;
getAnyAccountByPublicKey: (publicKey: Readonly<{
__hex: string;
asData: (input: {
readonly compressed: boolean;
}) => Buffer;
toString: (compressed?: boolean | undefined) => string;
isValidSignature: (input: Readonly<{
signature: import("@crypto").SignatureT;
hashedMessage: Buffer;
}>) => boolean;
decodeToPointOnCurve: () => Readonly<{
x: import("@radixdlt/uint256").UInt256;
y: import("@radixdlt/uint256").UInt256;
toBuffer: (includePrefixByte?: boolean | undefined) => Buffer;
toString: (includePrefixByte?: boolean | undefined) => string;
equals: (other: Readonly) => boolean;
add: (other: Readonly) => Readonly;
multiply: (by: import("@radixdlt/uint256").UInt256) => Readonly;
multiplyWithPrivateKey: (privateKey: import("@crypto").PrivateKeyT) => Readonly;
}>;
equals: (other: Readonly) => boolean;
}>) => import("prelude-ts").Option;
all: AccountT[];
accountsWithNonHDSigningKeys: () => AccountT[];
accountsWithLocalHDSigningKeys: () => AccountT[];
accountsWithHardwareHDSigningKeys: () => AccountT[];
accountsWithHDSigningKeys: () => AccountT[];
size: () => number;
}>>;
tokenBalances: () => Promise>;
stakingPositions: () => Promise>;
unstakingPositions: () => Promise>;
lookupTransaction: (txID: Readonly<{
__witness: "isTXId";
__hex: string;
toPrimitive: () => string;
equals: (other: Readonly) => boolean;
}>) => Promise>;
transactionHistory: (size: number, cursor?: string | undefined) => Promise>;
transferTokens: (to: AccountAddressT, amount: AmountT, tokenIdentifier: ResourceIdentifierT, message?: TxMessage | undefined, options?: MakeTransactionOptions) => Promise>;
stakeTokens: (validator: ValidatorAddressT, amount: AmountT, options?: MakeTransactionOptions) => Promise>;
unstakeTokens: (validator: ValidatorAddressT, amount: AmountT, options?: MakeTransactionOptions) => Promise>;
validators: () => Promise>;
lookupValidator: (input: ValidatorAddressT) => Promise>;
targetApiVersion: string;
};
};
//# sourceMappingURL=radix.d.ts.map