export type BitcoinNetwork = 'MAINNET' | 'TESTNET' | 'TESTNET4' | 'REGTEST' | 'SIGNET'; export declare const BitcoinNetwork: { readonly MAINNET: "MAINNET"; readonly TESTNET: "TESTNET"; readonly TESTNET4: "TESTNET4"; readonly REGTEST: "REGTEST"; readonly SIGNET: "SIGNET"; }; export type Keys = { mnemonic?: string | null; xpub: string; accountXpubVanilla: string; accountXpubColored: string; masterFingerprint: string; }; export type Balance = { settled: number; future: number; spendable: number; }; export type BtcBalance = { vanilla: Balance; colored: Balance; }; export type AssetSchema = 'NIA' | 'UDA' | 'CFA' | 'IFA'; export declare const AssetSchema: { readonly NIA: "NIA"; readonly UDA: "UDA"; readonly CFA: "CFA"; readonly IFA: "IFA"; }; export type AssignmentType = 'FUNGIBLE' | 'NON_FUNGIBLE' | 'INFLATION_RIGHT' | 'REPLACE_RIGHT' | 'ANY'; export type Assignment = { type: AssignmentType; amount?: number; }; export type Outpoint = { txid: string; vout: number; }; export type Utxo = { outpoint: Outpoint; btcAmount: number; colorable: boolean; exists: boolean; }; export type RgbAllocation = { assetId?: string; assignment: Assignment; settled: boolean; }; export type RefreshTransferStatus = 'WAITING_COUNTERPARTY' | 'WAITING_CONFIRMATIONS'; export type RefreshFilter = { status: RefreshTransferStatus; incoming: boolean; }; export type WitnessData = { amountSat: number; blinding?: number; }; export type Recipient = { recipientId: string; witnessData?: WitnessData; assignment: Assignment; transportEndpoints: string[]; }; export type Media = { filePath: string; mime: string; digest: string; }; export type AssetCfa = { assetId: string; name: string; details?: string; precision: number; issuedSupply: number; timestamp: number; addedAt: number; balance: Balance; media?: Media; }; export type AssetIfa = { assetId: string; ticker: string; name: string; details?: string; precision: number; initialSupply: number; maxSupply: number; knownCirculatingSupply: number; timestamp: number; addedAt: number; balance: Balance; media?: Media; rejectListUrl?: string; }; export type AssetNia = { assetId: string; ticker: string; name: string; details?: string; precision: number; issuedSupply: number; timestamp: number; addedAt: number; balance: Balance; media?: Media; }; export type AssetUda = { assetId: string; ticker: string; name: string; details?: string; precision: number; timestamp: number; addedAt: number; balance: Balance; token?: { index: number; ticker?: string; name?: string; details?: string; embeddedMedia: boolean; media?: Media; attachments: Array<{ key: number; filePath: string; mime: string; digest: string; }>; reserves: boolean; }; }; export type Assets = { nia: AssetNia[]; uda: AssetUda[]; cfa: AssetCfa[]; ifa: AssetIfa[]; }; export type OperationResult = { txid: string; batchTransferIdx: number; }; export type ReceiveData = { invoice: string; recipientId: string; expirationTimestamp: number | null; batchTransferIdx: number; }; export type InvoiceData = { invoice: string; recipientId: string; assetSchema?: AssetSchema; assetId?: string; assignment: Assignment; assignmentName?: string; network: BitcoinNetwork; expirationTimestamp: number | null; transportEndpoints: string[]; }; type RawInvoiceData = { recipientId: string; assetSchema?: string | null; assetId?: string | null; assignment: Record | string; assignmentName?: string; network: string; expirationTimestamp: number | null; transportEndpoints: string[]; }; export declare function normalizeInvoiceData(invoice: string, raw: RawInvoiceData): InvoiceData; export type Transaction = { transactionType: 'RGB_SEND' | 'DRAIN' | 'CREATE_UTXOS' | 'USER'; txid: string; received: number; sent: number; fee: number; confirmationTime?: number; }; export type TransferTransportEndpoint = { endpoint: string; used: boolean; transportType: string; }; export type Transfer = { idx: number; batchTransferIdx: number; createdAt: number; updatedAt: number; kind: 'ISSUANCE' | 'RECEIVE_BLIND' | 'RECEIVE_WITNESS' | 'SEND' | 'INFLATION'; status: 'WAITING_COUNTERPARTY' | 'WAITING_CONFIRMATIONS' | 'SETTLED' | 'FAILED'; txid?: string; recipientId?: string; requestedAssignment?: Assignment; assignments: Assignment[]; receiveUtxo?: Outpoint; changeUtxo?: Outpoint; expiration?: number; transportEndpoints: TransferTransportEndpoint[]; invoiceString?: string; consignmentPath?: string; }; export type Unspent = { utxo: Utxo; rgbAllocations: RgbAllocation[]; pendingBlinded: number; }; export type RefreshedTransfer = { updatedStatus?: 'WAITING_COUNTERPARTY' | 'WAITING_CONFIRMATIONS' | 'SETTLED' | 'FAILED'; failure?: string; }; export type WalletData = { dataDir: string; bitcoinNetwork: string; databaseType: string; maxAllocationsPerUtxo: number; accountXpubVanilla: string; accountXpubColored: string; mnemonic?: string; masterFingerprint: string; vanillaKeychain?: number; supportedSchemas: string[]; }; export type AssetMetadata = { assetId: string; name: string; ticker?: string; details?: string; precision?: number; issuedSupply?: number; timestamp?: number; amounts?: number[]; assetNia?: AssetNia; assetUda?: AssetUda; assetCfa?: AssetCfa; assetIfa?: AssetIfa; }; export type RgbLibErrors = 'AllocationsAlreadyAvailable' | { type: 'AssetNotFound'; assetId: string; } | { type: 'BatchTransferNotFound'; idx: number; } | 'BitcoinNetworkMismatch' | 'CannotChangeOnline' | 'CannotDeleteBatchTransfer' | 'CannotEstimateFees' | 'CannotFailBatchTransfer' | 'CannotFinalizePsbt' | 'CannotUseIfaOnMainnet' | { type: 'EmptyFile'; filePath: string; } | { type: 'FailedBdkSync'; details: string; } | { type: 'FailedBroadcast'; details: string; } | { type: 'FailedIssuance'; details: string; } | { type: 'FileAlreadyExists'; path: string; } | 'FingerprintMismatch' | { type: 'Io'; details: string; } | { type: 'Inconsistency'; details: string; } | { type: 'Indexer'; details: string; } | 'InexistentDataDir' | 'InsufficientAllocationSlots' | { type: 'InsufficientAssignments'; assetId: string; available: unknown; } | { type: 'InsufficientBitcoins'; needed: number; available: number; } | { type: 'Internal'; details: string; } | { type: 'InvalidAddress'; details: string; } | 'InvalidAmountZero' | { type: 'InvalidAssetId'; assetId: string; } | 'InvalidAssignment' | { type: 'InvalidAttachments'; details: string; } | 'InvalidBitcoinKeys' | { type: 'InvalidBitcoinNetwork'; network: string; } | { type: 'InvalidColoringInfo'; details: string; } | 'InvalidConsignment' | { type: 'InvalidDetails'; details: string; } | { type: 'InvalidElectrum'; details: string; } | 'InvalidEstimationBlocks' | { type: 'InvalidFeeRate'; details: string; } | { type: 'InvalidFilePath'; filePath: string; } | 'InvalidFingerprint' | { type: 'InvalidIndexer'; details: string; } | { type: 'InvalidInvoice'; details: string; } | { type: 'InvalidMnemonic'; details: string; } | { type: 'InvalidName'; details: string; } | { type: 'InvalidPrecision'; details: string; } | { type: 'InvalidProxyProtocol'; version: string; } | { type: 'InvalidPsbt'; details: string; } | { type: 'InvalidPubkey'; details: string; } | { type: 'InvalidRecipientData'; details: string; } | 'InvalidRecipientId' | 'InvalidRecipientNetwork' | { type: 'InvalidRejectListUrl'; details: string; } | { type: 'InvalidTicker'; details: string; } | { type: 'InvalidTransportEndpoint'; details: string; } | { type: 'InvalidTransportEndpoints'; details: string; } | 'InvalidTxid' | 'InvalidVanillaKeychain' | { type: 'MaxFeeExceeded'; txid: string; } | { type: 'MinFeeNotMet'; txid: string; } | { type: 'Network'; details: string; } | 'NoConsignment' | 'NoInflationAmounts' | 'NoIssuanceAmounts' | 'NoSupportedSchemas' | 'NoValidTransportEndpoint' | 'Offline' | 'OnlineNeeded' | 'OutputBelowDustLimit' | { type: 'Proxy'; details: string; } | 'RecipientIdAlreadyUsed' | 'RecipientIdDuplicated' | { type: 'RejectListService'; details: string; } | { type: 'RestClientBuild'; details: string; } | 'TooHighInflationAmounts' | 'TooHighIssuanceAmounts' | { type: 'UnknownRgbSchema'; schemaId: string; } | { type: 'UnknownTransfer'; txid: string; } | { type: 'UnsupportedBackupVersion'; version: string; } | { type: 'UnsupportedInflation'; assetSchema: string; } | { type: 'UnsupportedLayer1'; layer1: string; } | { type: 'UnsupportedSchema'; assetSchema: string; } | 'UnsupportedTransportType' | { type: 'WalletDirAlreadyExists'; path: string; } | 'WatchOnly' | 'WrongPassword'; export declare const RgbLibErrors: { readonly AllocationsAlreadyAvailable: "AllocationsAlreadyAvailable"; readonly BitcoinNetworkMismatch: "BitcoinNetworkMismatch"; readonly CannotChangeOnline: "CannotChangeOnline"; readonly CannotDeleteBatchTransfer: "CannotDeleteBatchTransfer"; readonly CannotEstimateFees: "CannotEstimateFees"; readonly CannotFailBatchTransfer: "CannotFailBatchTransfer"; readonly CannotFinalizePsbt: "CannotFinalizePsbt"; readonly CannotUseIfaOnMainnet: "CannotUseIfaOnMainnet"; readonly FingerprintMismatch: "FingerprintMismatch"; readonly InexistentDataDir: "InexistentDataDir"; readonly InsufficientAllocationSlots: "InsufficientAllocationSlots"; readonly InvalidAmountZero: "InvalidAmountZero"; readonly InvalidAssignment: "InvalidAssignment"; readonly InvalidBitcoinKeys: "InvalidBitcoinKeys"; readonly InvalidConsignment: "InvalidConsignment"; readonly InvalidEstimationBlocks: "InvalidEstimationBlocks"; readonly InvalidFingerprint: "InvalidFingerprint"; readonly InvalidRecipientId: "InvalidRecipientId"; readonly InvalidRecipientNetwork: "InvalidRecipientNetwork"; readonly InvalidTxid: "InvalidTxid"; readonly InvalidVanillaKeychain: "InvalidVanillaKeychain"; readonly NoConsignment: "NoConsignment"; readonly NoInflationAmounts: "NoInflationAmounts"; readonly NoIssuanceAmounts: "NoIssuanceAmounts"; readonly NoSupportedSchemas: "NoSupportedSchemas"; readonly NoValidTransportEndpoint: "NoValidTransportEndpoint"; readonly Offline: "Offline"; readonly OnlineNeeded: "OnlineNeeded"; readonly OutputBelowDustLimit: "OutputBelowDustLimit"; readonly RecipientIdAlreadyUsed: "RecipientIdAlreadyUsed"; readonly RecipientIdDuplicated: "RecipientIdDuplicated"; readonly TooHighInflationAmounts: "TooHighInflationAmounts"; readonly TooHighIssuanceAmounts: "TooHighIssuanceAmounts"; readonly UnsupportedTransportType: "UnsupportedTransportType"; readonly WatchOnly: "WatchOnly"; readonly WrongPassword: "WrongPassword"; }; export {}; //# sourceMappingURL=Interfaces.d.ts.map