import { z } from 'zod'; import { Face } from '../attributes/face.js'; import { Label } from '../attributes/label.js'; import { DetectedObject } from './attributes/detected-object.js'; import { DetectedText } from './attributes/detected-text.js'; /** * Represents additional metadata associated with * an image document. */ export declare const ImageMetadataSchema: z.ZodObject<{ /** * The dimensions (width and height) of the image. */ dimensions: z.ZodOptional>; /** * The format of the image. */ format: z.ZodOptional; /** * The dominant color of the image. */ dominantColor: z.ZodOptional>; /** * An URL to a thumbnail associated with * the image. */ thumbnail: z.ZodOptional; /** * The orientation of the image. */ orientation: z.ZodOptional; /** * The EXIF metadata associated with the image. * This is a free form object that can contain * any EXIF metadata. */ exif: z.ZodOptional>; /** * The geolocation associated with the image. */ geolocation: z.ZodOptional>; /** * The detected faces in the image. */ faces: z.ZodOptional, string>>; /** * The detected labels in the image. */ labels: z.ZodOptional, string>>; /** * The detected objects in the image. */ objects: z.ZodOptional, string>>; /** * The detected text in the image. */ text: z.ZodOptional, string>>; /** * The vector embeddings associated with the image document. */ embeddings: z.ZodOptional, string>; model: z.ZodString; dimensions: z.ZodNumber; }, "strip", z.ZodTypeAny, { vectors: import("../../../../pointer").Pointer; model: string; dimensions: number; }, { vectors: string; model: string; dimensions: number; }>>; /** * The detected personal protective equipment * in the image. */ ppe: z.ZodOptional, string>>; }, "strip", z.ZodTypeAny, { personsWithRequiredEquipment: number; personsWithoutRequiredEquipment: number; personsIndeterminate: number; persons?: import("../../../../pointer").Pointer | undefined; }, { personsWithRequiredEquipment: number; personsWithoutRequiredEquipment: number; personsIndeterminate: number; persons?: string | undefined; }>>; /** * Statistics about the image. */ stats: z.ZodOptional; objects: z.ZodOptional; labels: z.ZodOptional; moderations: z.ZodOptional; text: z.ZodOptional; }, "strip", z.ZodTypeAny, { text?: number | undefined; faces?: number | undefined; objects?: number | undefined; labels?: number | undefined; moderations?: number | undefined; }, { text?: number | undefined; faces?: number | undefined; objects?: number | undefined; labels?: number | undefined; moderations?: number | undefined; }>>; /** * The laplacian variance of the image. */ variance: z.ZodOptional; /** * Describes the hashes associated with the image. */ hashes: z.ZodOptional; average: z.ZodOptional; median: z.ZodOptional; difference: z.ZodOptional; cropResistant: z.ZodOptional; wavelet: z.ZodOptional; color: z.ZodOptional; }, "strip", z.ZodTypeAny, { perceptual?: string | undefined; average?: string | undefined; median?: string | undefined; difference?: string | undefined; cropResistant?: string | undefined; wavelet?: string | undefined; color?: string | undefined; }, { perceptual?: string | undefined; average?: string | undefined; median?: string | undefined; difference?: string | undefined; cropResistant?: string | undefined; wavelet?: string | undefined; color?: string | undefined; }>>; /** * User defined metadata of the image. */ custom: z.ZodOptional>; }, "strip", z.ZodTypeAny, { custom?: Record | undefined; format?: string | undefined; text?: import("../../../../pointer").Pointer | undefined; faces?: import("../../../../pointer").Pointer | undefined; objects?: import("../../../../pointer").Pointer | undefined; labels?: import("../../../../pointer").Pointer | undefined; dimensions?: { width: number; height: number; } | undefined; dominantColor?: { blue: number; green: number; red: number; } | undefined; thumbnail?: string | undefined; orientation?: any; exif?: Record | undefined; geolocation?: { latitude: number; longitude: number; } | undefined; embeddings?: { vectors: import("../../../../pointer").Pointer; model: string; dimensions: number; } | undefined; ppe?: { personsWithRequiredEquipment: number; personsWithoutRequiredEquipment: number; personsIndeterminate: number; persons?: import("../../../../pointer").Pointer | undefined; } | undefined; stats?: { text?: number | undefined; faces?: number | undefined; objects?: number | undefined; labels?: number | undefined; moderations?: number | undefined; } | undefined; variance?: number | undefined; hashes?: { perceptual?: string | undefined; average?: string | undefined; median?: string | undefined; difference?: string | undefined; cropResistant?: string | undefined; wavelet?: string | undefined; color?: string | undefined; } | undefined; }, { custom?: Record | undefined; format?: string | undefined; text?: string | undefined; faces?: string | undefined; objects?: string | undefined; labels?: string | undefined; dimensions?: { width: number; height: number; } | undefined; dominantColor?: { blue: number; green: number; red: number; } | undefined; thumbnail?: string | undefined; orientation?: any; exif?: Record | undefined; geolocation?: { latitude: number; longitude: number; } | undefined; embeddings?: { vectors: string; model: string; dimensions: number; } | undefined; ppe?: { personsWithRequiredEquipment: number; personsWithoutRequiredEquipment: number; personsIndeterminate: number; persons?: string | undefined; } | undefined; stats?: { text?: number | undefined; faces?: number | undefined; objects?: number | undefined; labels?: number | undefined; moderations?: number | undefined; } | undefined; variance?: number | undefined; hashes?: { perceptual?: string | undefined; average?: string | undefined; median?: string | undefined; difference?: string | undefined; cropResistant?: string | undefined; wavelet?: string | undefined; color?: string | undefined; } | undefined; }>; export type ImageMetadata = z.infer; export * from '../attributes/color.js'; export * from '../attributes/dimensions.js'; export * from '../attributes/geolocation.js'; export * from '../attributes/face.js'; export * from '../attributes/label.js'; export * from './attributes';