import { StaticConfigParameters, StaticConfigParametersArgs } from "../types/staticConfigParameters.js"; import "../types/index.js"; import { CP_AMM_PROGRAM_ADDRESS } from "../programs/cpAmm.js"; import "../programs/index.js"; import { AccountMeta, AccountSignerMeta, Address, Codec, Decoder, Encoder, Instruction, InstructionWithAccounts, InstructionWithData, ReadonlyAccount, ReadonlyUint8Array, TransactionSigner, WritableAccount, WritableSignerAccount } from "@solana/kit"; //#region src/generated/instructions/createConfig.d.ts declare const CREATE_CONFIG_DISCRIMINATOR: ReadonlyUint8Array; declare function getCreateConfigDiscriminatorBytes(): ReadonlyUint8Array; type CreateConfigInstruction = string, TAccountAdmin extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = "11111111111111111111111111111111", TAccountEventAuthority extends string | AccountMeta = string, TAccountProgram extends string | AccountMeta = "cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGG", TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[TAccountConfig extends string ? WritableAccount : TAccountConfig, TAccountAdmin extends string ? WritableSignerAccount & AccountSignerMeta : TAccountAdmin, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, TAccountEventAuthority extends string ? ReadonlyAccount : TAccountEventAuthority, TAccountProgram extends string ? ReadonlyAccount : TAccountProgram, ...TRemainingAccounts]>; type CreateConfigInstructionData = { discriminator: ReadonlyUint8Array; index: bigint; configParameters: StaticConfigParameters; }; type CreateConfigInstructionDataArgs = { index: number | bigint; configParameters: StaticConfigParametersArgs; }; declare function getCreateConfigInstructionDataEncoder(): Encoder; declare function getCreateConfigInstructionDataDecoder(): Decoder; declare function getCreateConfigInstructionDataCodec(): Codec; type CreateConfigAsyncInput = { config?: Address; admin: TransactionSigner; systemProgram?: Address; eventAuthority?: Address; program?: Address; index: CreateConfigInstructionDataArgs["index"]; configParameters: CreateConfigInstructionDataArgs["configParameters"]; }; /** * ADMIN FUNCTIONS ///// */ declare function getCreateConfigInstructionAsync(input: CreateConfigAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; type CreateConfigInput = { config: Address; admin: TransactionSigner; systemProgram?: Address; eventAuthority: Address; program?: Address; index: CreateConfigInstructionDataArgs["index"]; configParameters: CreateConfigInstructionDataArgs["configParameters"]; }; /** * ADMIN FUNCTIONS ///// */ declare function getCreateConfigInstruction(input: CreateConfigInput, config?: { programAddress?: TProgramAddress; }): CreateConfigInstruction; type ParsedCreateConfigInstruction = { programAddress: Address; accounts: { config: TAccountMetas[0]; admin: TAccountMetas[1]; systemProgram: TAccountMetas[2]; eventAuthority: TAccountMetas[3]; program: TAccountMetas[4]; }; data: CreateConfigInstructionData; }; declare function parseCreateConfigInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedCreateConfigInstruction; //#endregion export { CREATE_CONFIG_DISCRIMINATOR, CreateConfigAsyncInput, CreateConfigInput, CreateConfigInstruction, CreateConfigInstructionData, CreateConfigInstructionDataArgs, ParsedCreateConfigInstruction, getCreateConfigDiscriminatorBytes, getCreateConfigInstruction, getCreateConfigInstructionAsync, getCreateConfigInstructionDataCodec, getCreateConfigInstructionDataDecoder, getCreateConfigInstructionDataEncoder, parseCreateConfigInstruction }; //# sourceMappingURL=createConfig.d.ts.map