import { Payload, PayloadArgs } from "./payload.js"; import "./index.js"; import { Codec, Decoder, Encoder, GetDiscriminatedUnionVariant, GetDiscriminatedUnionVariantContent, Option, OptionOrNullable } from "@solana/kit"; //#region src/generated/types/validateArgs.d.ts /** Versioned arguments for the `validate` instruction. */ export type ValidateArgs = { __kind: "V1"; /** The name of the operation being validated (e.g. `Transfer`). */ operation: string; /** The runtime values the operation's rules will evaluate. */ payload: Payload; /** Whether stateful rules (e.g. Frequency) should be advanced and persisted. */ updateRuleState: boolean; /** Optional revision to validate against; defaults to the latest. */ ruleSetRevision: Option; }; export type ValidateArgsArgs = { __kind: "V1"; /** The name of the operation being validated (e.g. `Transfer`). */ operation: string; /** The runtime values the operation's rules will evaluate. */ payload: PayloadArgs; /** Whether stateful rules (e.g. Frequency) should be advanced and persisted. */ updateRuleState: boolean; /** Optional revision to validate against; defaults to the latest. */ ruleSetRevision: OptionOrNullable; }; export declare function getValidateArgsEncoder(): Encoder; export declare function getValidateArgsDecoder(): Decoder; export declare function getValidateArgsCodec(): Codec; export declare function validateArgs(kind: "V1", data: GetDiscriminatedUnionVariantContent): GetDiscriminatedUnionVariant; export declare function isValidateArgs(kind: K, value: ValidateArgs): value is ValidateArgs & { __kind: K; }; //#endregion //# sourceMappingURL=validateArgs.d.ts.map