import * as z from "zod";
import { Result as SafeParseResult } from "../../types/fp.js";
import { RFCDate } from "../../types/rfcdate.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
export type Transformations = {
    /**
     * Number of transformations used
     */
    usage?: number | undefined;
};
export type Objects = {
    /**
     * Number of objects used
     */
    usage?: number | undefined;
    /**
     * Object limit for the plan
     */
    limit?: number | undefined;
    /**
     * Percentage of object limit used
     */
    usedPercent?: number | undefined;
};
export type Bandwidth = {
    /**
     * Bandwidth used in bytes
     */
    usage?: number | undefined;
    /**
     * Bandwidth limit for the plan
     */
    limit?: number | undefined;
    /**
     * Percentage of bandwidth limit used
     */
    usedPercent?: number | undefined;
};
export type Storage = {
    /**
     * Storage used in bytes
     */
    usage?: number | undefined;
    /**
     * Storage limit for the plan
     */
    limit?: number | undefined;
    /**
     * Percentage of storage limit used
     */
    usedPercent?: number | undefined;
};
export type Impressions = {
    /**
     * Number of impressions used
     */
    usage?: number | undefined;
};
export type SecondsDelivered = {
    /**
     * Number of seconds delivered
     */
    usage?: number | undefined;
};
/**
 * Upload size and pixel limits
 */
export type MediaLimits = {
    /**
     * Maximum size for images in bytes
     */
    imageMaxSizeBytes?: number | undefined;
    /**
     * Maximum size for videos in bytes
     */
    videoMaxSizeBytes?: number | undefined;
    /**
     * Maximum size for raw files in bytes
     */
    rawMaxSizeBytes?: number | undefined;
    /**
     * Maximum pixels for images
     */
    imageMaxPx?: number | undefined;
    /**
     * Maximum total pixels for assets
     */
    assetMaxTotalPx?: number | undefined;
};
export type UsageResponse = {
    /**
     * The current plan name
     */
    plan?: string | undefined;
    /**
     * When the usage data was last updated
     */
    lastUpdated?: RFCDate | undefined;
    /**
     * The date for which usage was requested
     */
    dateRequested?: Date | undefined;
    transformations?: Transformations | undefined;
    objects?: Objects | undefined;
    bandwidth?: Bandwidth | undefined;
    storage?: Storage | undefined;
    impressions?: Impressions | undefined;
    secondsDelivered?: SecondsDelivered | undefined;
    /**
     * Number of resources stored
     */
    resources?: number | undefined;
    /**
     * Number of derived resources
     */
    derivedResources?: number | undefined;
    /**
     * Number of requests made
     */
    requests?: number | undefined;
    /**
     * Upload size and pixel limits
     */
    mediaLimits?: MediaLimits | undefined;
};
/** @internal */
export declare const Transformations$inboundSchema: z.ZodType<Transformations, z.ZodTypeDef, unknown>;
/** @internal */
export type Transformations$Outbound = {
    usage?: number | undefined;
};
/** @internal */
export declare const Transformations$outboundSchema: z.ZodType<Transformations$Outbound, z.ZodTypeDef, Transformations>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace Transformations$ {
    /** @deprecated use `Transformations$inboundSchema` instead. */
    const inboundSchema: z.ZodType<Transformations, z.ZodTypeDef, unknown>;
    /** @deprecated use `Transformations$outboundSchema` instead. */
    const outboundSchema: z.ZodType<Transformations$Outbound, z.ZodTypeDef, Transformations>;
    /** @deprecated use `Transformations$Outbound` instead. */
    type Outbound = Transformations$Outbound;
}
export declare function transformationsToJSON(transformations: Transformations): string;
export declare function transformationsFromJSON(jsonString: string): SafeParseResult<Transformations, SDKValidationError>;
/** @internal */
export declare const Objects$inboundSchema: z.ZodType<Objects, z.ZodTypeDef, unknown>;
/** @internal */
export type Objects$Outbound = {
    usage?: number | undefined;
    limit?: number | undefined;
    used_percent?: number | undefined;
};
/** @internal */
export declare const Objects$outboundSchema: z.ZodType<Objects$Outbound, z.ZodTypeDef, Objects>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace Objects$ {
    /** @deprecated use `Objects$inboundSchema` instead. */
    const inboundSchema: z.ZodType<Objects, z.ZodTypeDef, unknown>;
    /** @deprecated use `Objects$outboundSchema` instead. */
    const outboundSchema: z.ZodType<Objects$Outbound, z.ZodTypeDef, Objects>;
    /** @deprecated use `Objects$Outbound` instead. */
    type Outbound = Objects$Outbound;
}
export declare function objectsToJSON(objects: Objects): string;
export declare function objectsFromJSON(jsonString: string): SafeParseResult<Objects, SDKValidationError>;
/** @internal */
export declare const Bandwidth$inboundSchema: z.ZodType<Bandwidth, z.ZodTypeDef, unknown>;
/** @internal */
export type Bandwidth$Outbound = {
    usage?: number | undefined;
    limit?: number | undefined;
    used_percent?: number | undefined;
};
/** @internal */
export declare const Bandwidth$outboundSchema: z.ZodType<Bandwidth$Outbound, z.ZodTypeDef, Bandwidth>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace Bandwidth$ {
    /** @deprecated use `Bandwidth$inboundSchema` instead. */
    const inboundSchema: z.ZodType<Bandwidth, z.ZodTypeDef, unknown>;
    /** @deprecated use `Bandwidth$outboundSchema` instead. */
    const outboundSchema: z.ZodType<Bandwidth$Outbound, z.ZodTypeDef, Bandwidth>;
    /** @deprecated use `Bandwidth$Outbound` instead. */
    type Outbound = Bandwidth$Outbound;
}
export declare function bandwidthToJSON(bandwidth: Bandwidth): string;
export declare function bandwidthFromJSON(jsonString: string): SafeParseResult<Bandwidth, SDKValidationError>;
/** @internal */
export declare const Storage$inboundSchema: z.ZodType<Storage, z.ZodTypeDef, unknown>;
/** @internal */
export type Storage$Outbound = {
    usage?: number | undefined;
    limit?: number | undefined;
    used_percent?: number | undefined;
};
/** @internal */
export declare const Storage$outboundSchema: z.ZodType<Storage$Outbound, z.ZodTypeDef, Storage>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace Storage$ {
    /** @deprecated use `Storage$inboundSchema` instead. */
    const inboundSchema: z.ZodType<Storage, z.ZodTypeDef, unknown>;
    /** @deprecated use `Storage$outboundSchema` instead. */
    const outboundSchema: z.ZodType<Storage$Outbound, z.ZodTypeDef, Storage>;
    /** @deprecated use `Storage$Outbound` instead. */
    type Outbound = Storage$Outbound;
}
export declare function storageToJSON(storage: Storage): string;
export declare function storageFromJSON(jsonString: string): SafeParseResult<Storage, SDKValidationError>;
/** @internal */
export declare const Impressions$inboundSchema: z.ZodType<Impressions, z.ZodTypeDef, unknown>;
/** @internal */
export type Impressions$Outbound = {
    usage?: number | undefined;
};
/** @internal */
export declare const Impressions$outboundSchema: z.ZodType<Impressions$Outbound, z.ZodTypeDef, Impressions>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace Impressions$ {
    /** @deprecated use `Impressions$inboundSchema` instead. */
    const inboundSchema: z.ZodType<Impressions, z.ZodTypeDef, unknown>;
    /** @deprecated use `Impressions$outboundSchema` instead. */
    const outboundSchema: z.ZodType<Impressions$Outbound, z.ZodTypeDef, Impressions>;
    /** @deprecated use `Impressions$Outbound` instead. */
    type Outbound = Impressions$Outbound;
}
export declare function impressionsToJSON(impressions: Impressions): string;
export declare function impressionsFromJSON(jsonString: string): SafeParseResult<Impressions, SDKValidationError>;
/** @internal */
export declare const SecondsDelivered$inboundSchema: z.ZodType<SecondsDelivered, z.ZodTypeDef, unknown>;
/** @internal */
export type SecondsDelivered$Outbound = {
    usage?: number | undefined;
};
/** @internal */
export declare const SecondsDelivered$outboundSchema: z.ZodType<SecondsDelivered$Outbound, z.ZodTypeDef, SecondsDelivered>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace SecondsDelivered$ {
    /** @deprecated use `SecondsDelivered$inboundSchema` instead. */
    const inboundSchema: z.ZodType<SecondsDelivered, z.ZodTypeDef, unknown>;
    /** @deprecated use `SecondsDelivered$outboundSchema` instead. */
    const outboundSchema: z.ZodType<SecondsDelivered$Outbound, z.ZodTypeDef, SecondsDelivered>;
    /** @deprecated use `SecondsDelivered$Outbound` instead. */
    type Outbound = SecondsDelivered$Outbound;
}
export declare function secondsDeliveredToJSON(secondsDelivered: SecondsDelivered): string;
export declare function secondsDeliveredFromJSON(jsonString: string): SafeParseResult<SecondsDelivered, SDKValidationError>;
/** @internal */
export declare const MediaLimits$inboundSchema: z.ZodType<MediaLimits, z.ZodTypeDef, unknown>;
/** @internal */
export type MediaLimits$Outbound = {
    image_max_size_bytes?: number | undefined;
    video_max_size_bytes?: number | undefined;
    raw_max_size_bytes?: number | undefined;
    image_max_px?: number | undefined;
    asset_max_total_px?: number | undefined;
};
/** @internal */
export declare const MediaLimits$outboundSchema: z.ZodType<MediaLimits$Outbound, z.ZodTypeDef, MediaLimits>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace MediaLimits$ {
    /** @deprecated use `MediaLimits$inboundSchema` instead. */
    const inboundSchema: z.ZodType<MediaLimits, z.ZodTypeDef, unknown>;
    /** @deprecated use `MediaLimits$outboundSchema` instead. */
    const outboundSchema: z.ZodType<MediaLimits$Outbound, z.ZodTypeDef, MediaLimits>;
    /** @deprecated use `MediaLimits$Outbound` instead. */
    type Outbound = MediaLimits$Outbound;
}
export declare function mediaLimitsToJSON(mediaLimits: MediaLimits): string;
export declare function mediaLimitsFromJSON(jsonString: string): SafeParseResult<MediaLimits, SDKValidationError>;
/** @internal */
export declare const UsageResponse$inboundSchema: z.ZodType<UsageResponse, z.ZodTypeDef, unknown>;
/** @internal */
export type UsageResponse$Outbound = {
    plan?: string | undefined;
    last_updated?: string | undefined;
    date_requested?: string | undefined;
    transformations?: Transformations$Outbound | undefined;
    objects?: Objects$Outbound | undefined;
    bandwidth?: Bandwidth$Outbound | undefined;
    storage?: Storage$Outbound | undefined;
    impressions?: Impressions$Outbound | undefined;
    seconds_delivered?: SecondsDelivered$Outbound | undefined;
    resources?: number | undefined;
    derived_resources?: number | undefined;
    requests?: number | undefined;
    media_limits?: MediaLimits$Outbound | undefined;
};
/** @internal */
export declare const UsageResponse$outboundSchema: z.ZodType<UsageResponse$Outbound, z.ZodTypeDef, UsageResponse>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace UsageResponse$ {
    /** @deprecated use `UsageResponse$inboundSchema` instead. */
    const inboundSchema: z.ZodType<UsageResponse, z.ZodTypeDef, unknown>;
    /** @deprecated use `UsageResponse$outboundSchema` instead. */
    const outboundSchema: z.ZodType<UsageResponse$Outbound, z.ZodTypeDef, UsageResponse>;
    /** @deprecated use `UsageResponse$Outbound` instead. */
    type Outbound = UsageResponse$Outbound;
}
export declare function usageResponseToJSON(usageResponse: UsageResponse): string;
export declare function usageResponseFromJSON(jsonString: string): SafeParseResult<UsageResponse, SDKValidationError>;
//# sourceMappingURL=usageresponse.d.ts.map