import * as z from 'zod'; import { type Asset } from '../../../schemas/storage'; import { type HookContext } from '../context'; import { type AssetAssertUpload } from './payload'; /** * @see OnUploadAssetContext */ export declare const OnUploadAssetContextSchema: z.ZodObject<{ caller: z.ZodCustom, Uint8Array>; data: z.ZodObject<{ key: z.ZodObject<{ name: z.ZodString; full_path: z.ZodString; token: z.ZodOptional; collection: z.ZodString; owner: z.ZodCustom, Uint8Array>; description: z.ZodOptional; }, z.core.$strict>; headers: z.ZodArray>; encodings: z.ZodArray, z.ZodObject<{ modified: z.ZodBigInt; content_chunks: z.ZodArray, Uint8Array>>; total_length: z.ZodBigInt; sha256: z.ZodCustom, Uint8Array>; }, z.core.$strip>], null>>; created_at: z.ZodBigInt; updated_at: z.ZodBigInt; version: z.ZodOptional; }, z.core.$strict>; }, z.core.$strict>; /** * Context for the `onUploadAsset` hook. * * This context contains information about the asset that was uploaded. */ export type OnUploadAssetContext = HookContext; /** * @see OnDeleteAssetContext */ export declare const OnDeleteAssetContextSchema: z.ZodObject<{ caller: z.ZodCustom, Uint8Array>; data: z.ZodOptional; collection: z.ZodString; owner: z.ZodCustom, Uint8Array>; description: z.ZodOptional; }, z.core.$strict>; headers: z.ZodArray>; encodings: z.ZodArray, z.ZodObject<{ modified: z.ZodBigInt; content_chunks: z.ZodArray, Uint8Array>>; total_length: z.ZodBigInt; sha256: z.ZodCustom, Uint8Array>; }, z.core.$strip>], null>>; created_at: z.ZodBigInt; updated_at: z.ZodBigInt; version: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; /** * Context for the `onDeleteAsset` hook. * * This context contains information about a single asset being deleted, along with details about the user who triggered the operation. * * If undefined, the asset did not exist. */ export type OnDeleteAssetContext = HookContext; /** * @see OnDeleteManyAssetsContext */ export declare const OnDeleteManyAssetsContextSchema: z.ZodObject<{ caller: z.ZodCustom, Uint8Array>; data: z.ZodArray; collection: z.ZodString; owner: z.ZodCustom, Uint8Array>; description: z.ZodOptional; }, z.core.$strict>; headers: z.ZodArray>; encodings: z.ZodArray, z.ZodObject<{ modified: z.ZodBigInt; content_chunks: z.ZodArray, Uint8Array>>; total_length: z.ZodBigInt; sha256: z.ZodCustom, Uint8Array>; }, z.core.$strip>], null>>; created_at: z.ZodBigInt; updated_at: z.ZodBigInt; version: z.ZodOptional; }, z.core.$strict>>>; }, z.core.$strict>; /** * Context for the `onDeleteManyAssets` hook. * * This context contains information about multiple assets being potentially deleted, along with details about the user who triggered the operation. */ export type OnDeleteManyAssetsContext = HookContext>; /** * @see OnDeleteFilteredAssetsContext */ export declare const OnDeleteFilteredAssetsContextSchema: z.ZodObject<{ caller: z.ZodCustom, Uint8Array>; data: z.ZodArray; collection: z.ZodString; owner: z.ZodCustom, Uint8Array>; description: z.ZodOptional; }, z.core.$strict>; headers: z.ZodArray>; encodings: z.ZodArray, z.ZodObject<{ modified: z.ZodBigInt; content_chunks: z.ZodArray, Uint8Array>>; total_length: z.ZodBigInt; sha256: z.ZodCustom, Uint8Array>; }, z.core.$strip>], null>>; created_at: z.ZodBigInt; updated_at: z.ZodBigInt; version: z.ZodOptional; }, z.core.$strict>>>; }, z.core.$strict>; /** * Context for the `onDeleteFilteredAssets` hook. * * This context contains information about documents deleted as a result of a filter, along with details about the user who triggered the operation. */ export type OnDeleteFilteredAssetsContext = HookContext>; /** * @see AssertUploadAssetContext */ export declare const AssertUploadAssetContextSchema: z.ZodObject<{ caller: z.ZodCustom, Uint8Array>; data: z.ZodObject<{ current: z.ZodOptional; collection: z.ZodString; owner: z.ZodCustom, Uint8Array>; description: z.ZodOptional; }, z.core.$strict>; headers: z.ZodArray>; encodings: z.ZodArray, z.ZodObject<{ modified: z.ZodBigInt; content_chunks: z.ZodArray, Uint8Array>>; total_length: z.ZodBigInt; sha256: z.ZodCustom, Uint8Array>; }, z.core.$strip>], null>>; created_at: z.ZodBigInt; updated_at: z.ZodBigInt; version: z.ZodOptional; }, z.core.$strict>>; batch: z.ZodObject<{ key: z.ZodObject<{ name: z.ZodString; full_path: z.ZodString; token: z.ZodOptional; collection: z.ZodString; owner: z.ZodCustom, Uint8Array>; description: z.ZodOptional; }, z.core.$strict>; reference_id: z.ZodOptional; expires_at: z.ZodBigInt; encoding_type: z.ZodOptional>; }, z.core.$strict>; commit_batch: z.ZodObject<{ batch_id: z.ZodBigInt; headers: z.ZodArray>; chunk_ids: z.ZodArray; }, z.core.$strict>; }, z.core.$strict>; }, z.core.$strict>; /** * Context for the `assertUploadAsset` hook. * * This context contains information about the asset being validated before it is uploaded. If validation fails, the developer should throw an error. */ export type AssertUploadAssetContext = HookContext; /** * @see AssertDeleteAssetContext */ export declare const AssertDeleteAssetContextSchema: z.ZodObject<{ caller: z.ZodCustom, Uint8Array>; data: z.ZodObject<{ key: z.ZodObject<{ name: z.ZodString; full_path: z.ZodString; token: z.ZodOptional; collection: z.ZodString; owner: z.ZodCustom, Uint8Array>; description: z.ZodOptional; }, z.core.$strict>; headers: z.ZodArray>; encodings: z.ZodArray, z.ZodObject<{ modified: z.ZodBigInt; content_chunks: z.ZodArray, Uint8Array>>; total_length: z.ZodBigInt; sha256: z.ZodCustom, Uint8Array>; }, z.core.$strip>], null>>; created_at: z.ZodBigInt; updated_at: z.ZodBigInt; version: z.ZodOptional; }, z.core.$strict>; }, z.core.$strict>; /** * Context for the `assertDeleteAsset` hook. * * This context contains information about the asset being validated before it is deleted. If validation fails, the developer should throw an error. */ export type AssertDeleteAssetContext = HookContext;