import { Compiler } from '../template/compiler-types' ; import { TransactionContextCommon , TransactionGenerationAttempt , TransactionTemplateEstimated , } from './transaction-types' ; remarks param template export const estimateTransaction = < CompilerType extends Compiler < TransactionContextCommon , unknown , unknown > > ( template ) : TransactionGenerationAttempt => { return typeof template === 'object' ? { completions : [ ] , errors : [ ] , stage : 'inputs' , success : false } : { completions : [ ] , errors : [ ] , stage : 'inputs' , success : false } ; } ;