/** * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ import { type Codec, type Decoder, type Encoder, type GetDiscriminatedUnionVariant, type GetDiscriminatedUnionVariantContent } from '@solana/kit'; import { type RefundPolicy, type RefundPolicyArgs, type SettlementPolicy, type SettlementPolicyArgs } from '.'; export type PolicyData = { __kind: 'Refund'; fields: readonly [RefundPolicy]; } | { __kind: 'Settlement'; fields: readonly [SettlementPolicy]; }; export type PolicyDataArgs = { __kind: 'Refund'; fields: readonly [RefundPolicyArgs]; } | { __kind: 'Settlement'; fields: readonly [SettlementPolicyArgs]; }; export declare function getPolicyDataEncoder(): Encoder; export declare function getPolicyDataDecoder(): Decoder; export declare function getPolicyDataCodec(): Codec; export declare function policyData(kind: 'Refund', data: GetDiscriminatedUnionVariantContent['fields']): GetDiscriminatedUnionVariant; export declare function policyData(kind: 'Settlement', data: GetDiscriminatedUnionVariantContent['fields']): GetDiscriminatedUnionVariant; export declare function isPolicyData(kind: K, value: PolicyData): value is PolicyData & { __kind: K; }; //# sourceMappingURL=policyData.d.ts.map