import type { Int64 } from "@apple/cktool.core"; /** * A streaming asset object that represents a streaming asset in CloudKit. * * CKDBStreamingAsset is used to start asset upload with minimal data. * * API schema: CKDBStreamingAsset * API version: 1.3.2 */ export interface CKDBStreamingAsset { /** * The signature of a file returned from the file upload step. */ fileSignature?: string; /** * The signature of a file returned from the asset upload step. */ referenceSignature?: string; /** * The receipt for uploading the asset. */ uploadReceipt?: string; /** * The URL for accessing the asset. */ downloadUrl?: string; /** * The requested size of streaming asset. */ requestedSize?: Int64; /** * The uploaded size of streaming asset. */ uploadedSize?: Int64; /** * The reserved size of streaming asset. */ reservedSize?: Int64; } /** * An object the provides the functions that * transform {@link CKDBStreamingAsset } to and from JSON. */ export declare const jsonCodecCKDBStreamingAssetOwnProperties: { /** * Get an encoder that transforms {@link CKDBStreamingAsset }'s * own properties to JSON. */ readonly getEncoder: () => { readonly fileSignature: (value: string | import("fp-ts/lib/Option").Option | null | undefined) => import("@apple/cktool.core").ValidatedNEA>; readonly referenceSignature: (value: string | import("fp-ts/lib/Option").Option | null | undefined) => import("@apple/cktool.core").ValidatedNEA>; readonly uploadReceipt: (value: string | import("fp-ts/lib/Option").Option | null | undefined) => import("@apple/cktool.core").ValidatedNEA>; readonly downloadUrl: (value: string | import("fp-ts/lib/Option").Option | null | undefined) => import("@apple/cktool.core").ValidatedNEA>; readonly requestedSize: (value: import("@apple/cktool.core").ConvertibleToInt64 | import("fp-ts/lib/Option").Option | null | undefined) => import("@apple/cktool.core").ValidatedNEA>; readonly uploadedSize: (value: import("@apple/cktool.core").ConvertibleToInt64 | import("fp-ts/lib/Option").Option | null | undefined) => import("@apple/cktool.core").ValidatedNEA>; readonly reservedSize: (value: import("@apple/cktool.core").ConvertibleToInt64 | import("fp-ts/lib/Option").Option | null | undefined) => import("@apple/cktool.core").ValidatedNEA>; }; /** * Get a decoder that transforms {@link CKDBStreamingAsset }'s * own properties from JSON. */ readonly getDecoder: () => { readonly fileSignature: (value: string | import("fp-ts/lib/Option").Option | null | undefined) => import("@apple/cktool.core").ValidatedNEA>; readonly referenceSignature: (value: string | import("fp-ts/lib/Option").Option | null | undefined) => import("@apple/cktool.core").ValidatedNEA>; readonly uploadReceipt: (value: string | import("fp-ts/lib/Option").Option | null | undefined) => import("@apple/cktool.core").ValidatedNEA>; readonly downloadUrl: (value: string | import("fp-ts/lib/Option").Option | null | undefined) => import("@apple/cktool.core").ValidatedNEA>; readonly requestedSize: (value: import("@apple/cktool.core").ConvertibleToInt64 | import("fp-ts/lib/Option").Option | null | undefined) => import("@apple/cktool.core").ValidatedNEA>; readonly uploadedSize: (value: import("@apple/cktool.core").ConvertibleToInt64 | import("fp-ts/lib/Option").Option | null | undefined) => import("@apple/cktool.core").ValidatedNEA>; readonly reservedSize: (value: import("@apple/cktool.core").ConvertibleToInt64 | import("fp-ts/lib/Option").Option | null | undefined) => import("@apple/cktool.core").ValidatedNEA>; }; };