import * as ixModule from "../../interaction/interaction"; import { InteractionBuilderFn } from "../../interaction/interaction"; import { SdkContext } from "../../context/context"; export declare function createSend(context: SdkContext): (args?: (InteractionBuilderFn | false) | (InteractionBuilderFn | false)[], opts?: any) => Promise; /** * Sends arbitrary scripts, transactions, and requests to Flow. * * This method consumes an array of builders that are to be resolved and sent. The builders required to be included in the array depend on the interaction that is being built. * * WARNING: Must be used in conjunction with 'fcl.decode(response)' to get back correct keys and all values in JSON. * * @param args An array of builders (functions that take an interaction object and return a new interaction object) * @param opts Additional optional options for the request * @param opts.node Custom node endpoint to use for this request * @param opts.resolve Custom resolve function to use for processing the interaction * @returns A promise that resolves to a ResponseObject containing the data returned from the chain. Should always be decoded with fcl.decode() to get back appropriate JSON keys and values. * * @example * import * as fcl from "@onflow/fcl"; * * // a script only needs to resolve the arguments to the script * const response = await fcl.send([fcl.script`${script}`, fcl.args(args)]); * // note: response values are encoded, call await fcl.decode(response) to get JSON * * // a transaction requires multiple 'builders' that need to be resolved prior to being sent to the chain - such as setting the authorizations. * const response = await fcl.send([ * fcl.transaction` * ${transaction} * `, * fcl.args(args), * fcl.proposer(proposer), * fcl.authorizations(authorizations), * fcl.payer(payer), * fcl.limit(9999) * ]); * // note: response contains several values */ export declare const send: (args?: false | ixModule.InteractionBuilderFn | (false | ixModule.InteractionBuilderFn)[] | undefined, opts?: any) => Promise;