import type { Int64 } from "@apple/cktool.core"; /** * An object that represents an asset uploaded to CloudKit. * * API schema: CKDBAsset * API version: 1.3.2 */ export interface CKDBAsset { /** * The size of the asset in bytes. */ size?: Int64; /** * The receipt for uploading the asset. */ receipt?: string; /** * The signature of a file returned from the file upload step. */ fileChecksum?: string; /** * The secret key used to encrypt the asset. */ wrappingKey?: string; /** * The checksum of the wrapping key returned from the upload step. */ referenceChecksum?: string; /** * The URL for accessing the asset. */ downloadUrl?: string; } /** * An object the provides the functions that * transform {@link CKDBAsset } to and from JSON. */ export declare const jsonCodecCKDBAssetOwnProperties: { /** * Get an encoder that transforms {@link CKDBAsset }'s * own properties to JSON. */ readonly getEncoder: () => { readonly size: (value: import("@apple/cktool.core").ConvertibleToInt64 | import("fp-ts/lib/Option").Option | null | undefined) => import("@apple/cktool.core").ValidatedNEA>; readonly receipt: (value: string | import("fp-ts/lib/Option").Option | null | undefined) => import("@apple/cktool.core").ValidatedNEA>; readonly fileChecksum: (value: string | import("fp-ts/lib/Option").Option | null | undefined) => import("@apple/cktool.core").ValidatedNEA>; readonly wrappingKey: (value: string | import("fp-ts/lib/Option").Option | null | undefined) => import("@apple/cktool.core").ValidatedNEA>; readonly referenceChecksum: (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>; }; /** * Get a decoder that transforms {@link CKDBAsset }'s * own properties from JSON. */ readonly getDecoder: () => { readonly size: (value: import("@apple/cktool.core").ConvertibleToInt64 | import("fp-ts/lib/Option").Option | null | undefined) => import("@apple/cktool.core").ValidatedNEA>; readonly receipt: (value: string | import("fp-ts/lib/Option").Option | null | undefined) => import("@apple/cktool.core").ValidatedNEA>; readonly fileChecksum: (value: string | import("fp-ts/lib/Option").Option | null | undefined) => import("@apple/cktool.core").ValidatedNEA>; readonly wrappingKey: (value: string | import("fp-ts/lib/Option").Option | null | undefined) => import("@apple/cktool.core").ValidatedNEA>; readonly referenceChecksum: (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>; }; };