import { Buffer } from 'buffer';
import { mintLimitBeet } from '@metaplex-foundation/mpl-candy-guard';
import { createSerializerFromBeet } from '../../../types';
/** @internal */
export const mintLimitGuardManifest = {
    name: 'mintLimit',
    settingsBytes: 3,
    settingsSerializer: createSerializerFromBeet(mintLimitBeet),
    mintSettingsParser: ({ metaplex, settings, payer, candyMachine, candyGuard, programs, }) => {
        const counterPda = metaplex.candyMachines().pdas().mintLimitCounter({
            id: settings.id,
            user: payer.publicKey,
            candyMachine,
            candyGuard,
            programs,
        });
        return {
            arguments: Buffer.from([]),
            remainingAccounts: [
                {
                    address: counterPda,
                    isSigner: false,
                    isWritable: true,
                },
            ],
        };
    },
};
//# sourceMappingURL=mintLimit.js.map