import { Buffer } from 'buffer';
import { thirdPartySignerBeet } from '@metaplex-foundation/mpl-candy-guard';
import { GuardMintSettingsMissingError } from '../errors';
import { createSerializerFromBeet } from '../../../types';
/** @internal */
export const thirdPartySignerGuardManifest = {
    name: 'thirdPartySigner',
    settingsBytes: 32,
    settingsSerializer: createSerializerFromBeet(thirdPartySignerBeet),
    mintSettingsParser: ({ mintSettings }) => {
        if (!mintSettings) {
            throw new GuardMintSettingsMissingError('thirdPartySigner');
        }
        return {
            arguments: Buffer.from([]),
            remainingAccounts: [
                {
                    isSigner: true,
                    address: mintSettings.signer,
                    isWritable: true,
                },
            ],
        };
    },
};
//# sourceMappingURL=thirdPartySigner.js.map