export type Output = { script: Buffer; value: TValue; }; export type MaxOutput = Output<'max'>; type ValueBigInt = { value: bigint; }; type ValueMax = { value: 'max'; }; /** * @return true if the output is a max output */ export declare function isMaxOutput(output: A | B): output is B; /** * @return the max output if there is one * @throws if there are multiple max outputs */ export declare function getMaxOutput(outputs: (A | B)[]): B | undefined; /** * @return the sum of the outputs */ export declare function getOutputSum(outputs: ValueBigInt[]): bigint; /** * @return the sum of the outputs that are not 'max' */ export declare function getFixedOutputSum(outputs: (ValueBigInt | ValueMax)[]): bigint; /** * @param outputs * @param params * @return the outputs with the 'max' output replaced with the max amount */ export declare function toFixedOutputs(outputs: (A | B)[], params: { maxAmount: bigint; }): A[]; export type PrevOutput = { hash: string; index: number; witnessUtxo: Output; }; export {}; //# sourceMappingURL=Output.d.ts.map