/**
 * @group Operations
 * @category Constructors
 */
export const useOperation = (key) => {
    const constructor = (input) => {
        return {
            key,
            input,
        };
    };
    constructor.key = key;
    return constructor;
};
export const makeConfirmOptionsFinalizedOnMainnet = (metaplex, options) => {
    return metaplex.cluster === 'mainnet-beta'
        ? Object.assign(Object.assign({}, options), { commitment: 'finalized' }) : options;
};
//# sourceMappingURL=Operation.js.map