import * as z from "zod/v4-mini";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
import { Benefit } from "./benefit.js";
import { BenefitGrantCustomProperties } from "./benefitgrantcustomproperties.js";
import { BenefitGrantDiscordProperties } from "./benefitgrantdiscordproperties.js";
import { BenefitGrantDownloadablesProperties } from "./benefitgrantdownloadablesproperties.js";
import { BenefitGrantError } from "./benefitgranterror.js";
import { BenefitGrantFeatureFlagProperties } from "./benefitgrantfeatureflagproperties.js";
import { BenefitGrantGitHubRepositoryProperties } from "./benefitgrantgithubrepositoryproperties.js";
import { BenefitGrantLicenseKeysProperties } from "./benefitgrantlicensekeysproperties.js";
import { BenefitGrantSlackSharedChannelProperties } from "./benefitgrantslacksharedchannelproperties.js";
import { Customer } from "./customer.js";
import { Member } from "./member.js";
export type Properties = BenefitGrantDiscordProperties | BenefitGrantGitHubRepositoryProperties | BenefitGrantDownloadablesProperties | BenefitGrantLicenseKeysProperties | BenefitGrantCustomProperties | BenefitGrantFeatureFlagProperties | BenefitGrantSlackSharedChannelProperties;
export type BenefitGrant = {
    /**
     * Creation timestamp of the object.
     */
    createdAt: Date;
    /**
     * Last modification timestamp of the object.
     */
    modifiedAt: Date | null;
    /**
     * The ID of the grant.
     */
    id: string;
    /**
     * The timestamp when the benefit was granted. If `None`, the benefit is not granted.
     */
    grantedAt?: Date | null | undefined;
    /**
     * Whether the benefit is granted.
     */
    isGranted: boolean;
    /**
     * The timestamp when the benefit was revoked. If `None`, the benefit is not revoked.
     */
    revokedAt?: Date | null | undefined;
    /**
     * Whether the benefit is revoked.
     */
    isRevoked: boolean;
    /**
     * The ID of the subscription that granted this benefit.
     */
    subscriptionId: string | null;
    /**
     * The ID of the order that granted this benefit.
     */
    orderId: string | null;
    /**
     * The ID of the customer concerned by this grant.
     */
    customerId: string;
    /**
     * The ID of the member concerned by this grant.
     */
    memberId?: string | null | undefined;
    /**
     * The ID of the benefit concerned by this grant.
     */
    benefitId: string;
    /**
     * The error information if the benefit grant failed with an unrecoverable error.
     */
    error?: BenefitGrantError | null | undefined;
    customer: Customer;
    member?: Member | null | undefined;
    benefit: Benefit;
    properties: BenefitGrantDiscordProperties | BenefitGrantGitHubRepositoryProperties | BenefitGrantDownloadablesProperties | BenefitGrantLicenseKeysProperties | BenefitGrantCustomProperties | BenefitGrantFeatureFlagProperties | BenefitGrantSlackSharedChannelProperties;
};
/** @internal */
export declare const Properties$inboundSchema: z.ZodMiniType<Properties, unknown>;
export declare function propertiesFromJSON(jsonString: string): SafeParseResult<Properties, SDKValidationError>;
/** @internal */
export declare const BenefitGrant$inboundSchema: z.ZodMiniType<BenefitGrant, unknown>;
export declare function benefitGrantFromJSON(jsonString: string): SafeParseResult<BenefitGrant, SDKValidationError>;
//# sourceMappingURL=benefitgrant.d.ts.map