import { IURIScheme } from './IURIScheme'; import { ITransactionMapper } from './ITransactionMapper'; export declare class TransactionURI implements IURIScheme { readonly data: string; readonly transactionMapper: ITransactionMapper; readonly generationHash?: string | undefined; readonly nodeUrl?: string | undefined; readonly webhookUrl?: string | undefined; static readonly PROTOCOL: string; static readonly ACTION: string; /** * Create a TransactionURI. * * @param data - Transaction payload. * @param generationHash - Network generation hash. * @param nodeUrl - Node url to submit the transaction. * @param webhookUrl - URL to make a POST request after announcing the transaction. */ constructor(data: string, transactionMapper: ITransactionMapper, generationHash?: string | undefined, nodeUrl?: string | undefined, webhookUrl?: string | undefined); /** * Static constructor function from URI * @param uri - Transaction URI scheme * @param {ITransactionMapper} transactionMapper - creates a transaction object from given payload * @returns {TransactionURI} */ static fromURI(uri: string, transactionMapper: ITransactionMapper): TransactionURI; /** * Turn TransactionURI into Transaction object * @returns {Transaction} */ toTransaction(): T; /** * Build the URI */ build(): string; }