@codama/visitors
Version:
All visitors for the Codama framework
14 lines • 872 B
TypeScript
import { InstructionInputValueNode } from '@codama/nodes';
export type InstructionAccountDefaultRule = {
/** The name of the instruction account or a pattern to match on it. */
account: RegExp | string;
/** The default value to assign to it. */
defaultValue: InstructionInputValueNode;
/** @defaultValue `false`. */
ignoreIfOptional?: boolean;
/** @defaultValue Defaults to searching accounts on all instructions. */
instruction?: string;
};
export declare const getCommonInstructionAccountDefaultRules: () => InstructionAccountDefaultRule[];
export declare function setInstructionAccountDefaultValuesVisitor(rules: InstructionAccountDefaultRule[]): import("@codama/visitors-core").Visitor<import("@codama/nodes").Node, "instructionNode" | "programNode" | "rootNode">;
//# sourceMappingURL=setInstructionAccountDefaultValuesVisitor.d.ts.map