UNPKG

@allmaps/iiif-parser

Version:

Allmaps IIIF parser

957 lines (956 loc) 99.4 kB
import { z } from 'zod'; export declare const SingleValue3Schema: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>; export declare const LanguageValue3Schema: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>, "many">>; export declare const MetadataItem3Schema: z.ZodEffects<z.ZodUnion<[z.ZodAny, z.ZodObject<{ label: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>, "many">>>; value: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>, "many">>>; }, "strip", z.ZodTypeAny, { value?: Record<string, (string | number | boolean)[]> | undefined; label?: Record<string, (string | number | boolean)[]> | undefined; }, { value?: Record<string, (string | number | boolean)[]> | undefined; label?: Record<string, (string | number | boolean)[]> | undefined; }>]>, any, any>; export declare const Metadata3Schema: z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodAny, z.ZodObject<{ label: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>, "many">>>; value: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>, "many">>>; }, "strip", z.ZodTypeAny, { value?: Record<string, (string | number | boolean)[]> | undefined; label?: Record<string, (string | number | boolean)[]> | undefined; }, { value?: Record<string, (string | number | boolean)[]> | undefined; label?: Record<string, (string | number | boolean)[]> | undefined; }>]>, any, any>, "many">; export declare const AnnotationBody3Schema: z.ZodObject<{ type: z.ZodLiteral<"Image">; width: z.ZodOptional<z.ZodNumber>; height: z.ZodOptional<z.ZodNumber>; service: z.ZodArray<z.ZodUnion<[z.ZodObject<{ '@id': z.ZodString; '@type': z.ZodOptional<z.ZodEnum<["ImageService1", "ImageService2", "ImageService3"]>>; profile: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{ formats: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; maxArea: z.ZodOptional<z.ZodNumber>; maxHeight: z.ZodOptional<z.ZodNumber>; maxWidth: z.ZodOptional<z.ZodNumber>; qualities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; supports: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { formats?: string[] | undefined; maxArea?: number | undefined; maxHeight?: number | undefined; maxWidth?: number | undefined; qualities?: string[] | undefined; supports?: string[] | undefined; }, { formats?: string[] | undefined; maxArea?: number | undefined; maxHeight?: number | undefined; maxWidth?: number | undefined; qualities?: string[] | undefined; supports?: string[] | undefined; }>, z.ZodAny]>, "many">]>]>, z.ZodEnum<["level0", "level1", "level2"]>]>; width: z.ZodOptional<z.ZodNumber>; height: z.ZodOptional<z.ZodNumber>; '@context': z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"http://library.stanford.edu/iiif/image-api/1.1/context.json">, z.ZodLiteral<"http://iiif.io/api/image/1/context.json">]>, z.ZodUnion<[z.ZodLiteral<"http://iiif.io/api/image/2/context.json">, z.ZodLiteral<"https://iiif.io/api/image/2/context.json">]>]>>; }, "strip", z.ZodTypeAny, { '@id': string; profile: string | any[]; '@context'?: "http://library.stanford.edu/iiif/image-api/1.1/context.json" | "http://iiif.io/api/image/1/context.json" | "http://iiif.io/api/image/2/context.json" | "https://iiif.io/api/image/2/context.json" | undefined; width?: number | undefined; height?: number | undefined; '@type'?: "ImageService1" | "ImageService2" | "ImageService3" | undefined; }, { '@id': string; profile: string | any[]; '@context'?: "http://library.stanford.edu/iiif/image-api/1.1/context.json" | "http://iiif.io/api/image/1/context.json" | "http://iiif.io/api/image/2/context.json" | "https://iiif.io/api/image/2/context.json" | undefined; width?: number | undefined; height?: number | undefined; '@type'?: "ImageService1" | "ImageService2" | "ImageService3" | undefined; }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"ImageService2">; profile: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{ formats: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; maxArea: z.ZodOptional<z.ZodNumber>; maxHeight: z.ZodOptional<z.ZodNumber>; maxWidth: z.ZodOptional<z.ZodNumber>; qualities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; supports: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { formats?: string[] | undefined; maxArea?: number | undefined; maxHeight?: number | undefined; maxWidth?: number | undefined; qualities?: string[] | undefined; supports?: string[] | undefined; }, { formats?: string[] | undefined; maxArea?: number | undefined; maxHeight?: number | undefined; maxWidth?: number | undefined; qualities?: string[] | undefined; supports?: string[] | undefined; }>, z.ZodAny]>, "many">]>; }, "strip", z.ZodTypeAny, { type: "ImageService2"; profile: string | any[]; id: string; }, { type: "ImageService2"; profile: string | any[]; id: string; }>, z.ZodObject<{ '@id': z.ZodString; '@type': z.ZodLiteral<"ImageService2">; profile: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{ formats: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; maxArea: z.ZodOptional<z.ZodNumber>; maxHeight: z.ZodOptional<z.ZodNumber>; maxWidth: z.ZodOptional<z.ZodNumber>; qualities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; supports: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { formats?: string[] | undefined; maxArea?: number | undefined; maxHeight?: number | undefined; maxWidth?: number | undefined; qualities?: string[] | undefined; supports?: string[] | undefined; }, { formats?: string[] | undefined; maxArea?: number | undefined; maxHeight?: number | undefined; maxWidth?: number | undefined; qualities?: string[] | undefined; supports?: string[] | undefined; }>, z.ZodAny]>, "many">]>; }, "strip", z.ZodTypeAny, { '@id': string; profile: string | any[]; '@type': "ImageService2"; }, { '@id': string; profile: string | any[]; '@type': "ImageService2"; }>]>, z.ZodObject<{ id: z.ZodString; type: z.ZodEnum<["ImageService1", "ImageService2", "ImageService3"]>; profile: z.ZodEnum<["level0", "level1", "level2"]>; }, "strip", z.ZodTypeAny, { type: "ImageService1" | "ImageService2" | "ImageService3"; profile: "level0" | "level1" | "level2"; id: string; }, { type: "ImageService1" | "ImageService2" | "ImageService3"; profile: "level0" | "level1" | "level2"; id: string; }>]>]>, "many">; }, "strip", z.ZodTypeAny, { type: "Image"; service: ({ '@id': string; profile: string | any[]; '@context'?: "http://library.stanford.edu/iiif/image-api/1.1/context.json" | "http://iiif.io/api/image/1/context.json" | "http://iiif.io/api/image/2/context.json" | "https://iiif.io/api/image/2/context.json" | undefined; width?: number | undefined; height?: number | undefined; '@type'?: "ImageService1" | "ImageService2" | "ImageService3" | undefined; } | { type: "ImageService2"; profile: string | any[]; id: string; } | { '@id': string; profile: string | any[]; '@type': "ImageService2"; } | { type: "ImageService1" | "ImageService2" | "ImageService3"; profile: "level0" | "level1" | "level2"; id: string; })[]; width?: number | undefined; height?: number | undefined; }, { type: "Image"; service: ({ '@id': string; profile: string | any[]; '@context'?: "http://library.stanford.edu/iiif/image-api/1.1/context.json" | "http://iiif.io/api/image/1/context.json" | "http://iiif.io/api/image/2/context.json" | "https://iiif.io/api/image/2/context.json" | undefined; width?: number | undefined; height?: number | undefined; '@type'?: "ImageService1" | "ImageService2" | "ImageService3" | undefined; } | { type: "ImageService2"; profile: string | any[]; id: string; } | { '@id': string; profile: string | any[]; '@type': "ImageService2"; } | { type: "ImageService1" | "ImageService2" | "ImageService3"; profile: "level0" | "level1" | "level2"; id: string; })[]; width?: number | undefined; height?: number | undefined; }>; export declare const Canvas3Schema: z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"Canvas">; width: z.ZodNumber; height: z.ZodNumber; items: z.ZodArray<z.ZodObject<{ type: z.ZodLiteral<"AnnotationPage">; items: z.ZodArray<z.ZodObject<{ type: z.ZodLiteral<"Annotation">; body: z.ZodUnion<[z.ZodObject<{ type: z.ZodLiteral<"Image">; width: z.ZodOptional<z.ZodNumber>; height: z.ZodOptional<z.ZodNumber>; service: z.ZodArray<z.ZodUnion<[z.ZodObject<{ '@id': z.ZodString; '@type': z.ZodOptional<z.ZodEnum<["ImageService1", "ImageService2", "ImageService3"]>>; profile: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{ formats: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; maxArea: z.ZodOptional<z.ZodNumber>; maxHeight: z.ZodOptional<z.ZodNumber>; maxWidth: z.ZodOptional<z.ZodNumber>; qualities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; supports: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { formats?: string[] | undefined; maxArea?: number | undefined; maxHeight?: number | undefined; maxWidth?: number | undefined; qualities?: string[] | undefined; supports?: string[] | undefined; }, { formats?: string[] | undefined; maxArea?: number | undefined; maxHeight?: number | undefined; maxWidth?: number | undefined; qualities?: string[] | undefined; supports?: string[] | undefined; }>, z.ZodAny]>, "many">]>]>, z.ZodEnum<["level0", "level1", "level2"]>]>; width: z.ZodOptional<z.ZodNumber>; height: z.ZodOptional<z.ZodNumber>; '@context': z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"http://library.stanford.edu/iiif/image-api/1.1/context.json">, z.ZodLiteral<"http://iiif.io/api/image/1/context.json">]>, z.ZodUnion<[z.ZodLiteral<"http://iiif.io/api/image/2/context.json">, z.ZodLiteral<"https://iiif.io/api/image/2/context.json">]>]>>; }, "strip", z.ZodTypeAny, { '@id': string; profile: string | any[]; '@context'?: "http://library.stanford.edu/iiif/image-api/1.1/context.json" | "http://iiif.io/api/image/1/context.json" | "http://iiif.io/api/image/2/context.json" | "https://iiif.io/api/image/2/context.json" | undefined; width?: number | undefined; height?: number | undefined; '@type'?: "ImageService1" | "ImageService2" | "ImageService3" | undefined; }, { '@id': string; profile: string | any[]; '@context'?: "http://library.stanford.edu/iiif/image-api/1.1/context.json" | "http://iiif.io/api/image/1/context.json" | "http://iiif.io/api/image/2/context.json" | "https://iiif.io/api/image/2/context.json" | undefined; width?: number | undefined; height?: number | undefined; '@type'?: "ImageService1" | "ImageService2" | "ImageService3" | undefined; }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"ImageService2">; profile: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{ formats: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; maxArea: z.ZodOptional<z.ZodNumber>; maxHeight: z.ZodOptional<z.ZodNumber>; maxWidth: z.ZodOptional<z.ZodNumber>; qualities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; supports: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { formats?: string[] | undefined; maxArea?: number | undefined; maxHeight?: number | undefined; maxWidth?: number | undefined; qualities?: string[] | undefined; supports?: string[] | undefined; }, { formats?: string[] | undefined; maxArea?: number | undefined; maxHeight?: number | undefined; maxWidth?: number | undefined; qualities?: string[] | undefined; supports?: string[] | undefined; }>, z.ZodAny]>, "many">]>; }, "strip", z.ZodTypeAny, { type: "ImageService2"; profile: string | any[]; id: string; }, { type: "ImageService2"; profile: string | any[]; id: string; }>, z.ZodObject<{ '@id': z.ZodString; '@type': z.ZodLiteral<"ImageService2">; profile: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{ formats: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; maxArea: z.ZodOptional<z.ZodNumber>; maxHeight: z.ZodOptional<z.ZodNumber>; maxWidth: z.ZodOptional<z.ZodNumber>; qualities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; supports: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { formats?: string[] | undefined; maxArea?: number | undefined; maxHeight?: number | undefined; maxWidth?: number | undefined; qualities?: string[] | undefined; supports?: string[] | undefined; }, { formats?: string[] | undefined; maxArea?: number | undefined; maxHeight?: number | undefined; maxWidth?: number | undefined; qualities?: string[] | undefined; supports?: string[] | undefined; }>, z.ZodAny]>, "many">]>; }, "strip", z.ZodTypeAny, { '@id': string; profile: string | any[]; '@type': "ImageService2"; }, { '@id': string; profile: string | any[]; '@type': "ImageService2"; }>]>, z.ZodObject<{ id: z.ZodString; type: z.ZodEnum<["ImageService1", "ImageService2", "ImageService3"]>; profile: z.ZodEnum<["level0", "level1", "level2"]>; }, "strip", z.ZodTypeAny, { type: "ImageService1" | "ImageService2" | "ImageService3"; profile: "level0" | "level1" | "level2"; id: string; }, { type: "ImageService1" | "ImageService2" | "ImageService3"; profile: "level0" | "level1" | "level2"; id: string; }>]>]>, "many">; }, "strip", z.ZodTypeAny, { type: "Image"; service: ({ '@id': string; profile: string | any[]; '@context'?: "http://library.stanford.edu/iiif/image-api/1.1/context.json" | "http://iiif.io/api/image/1/context.json" | "http://iiif.io/api/image/2/context.json" | "https://iiif.io/api/image/2/context.json" | undefined; width?: number | undefined; height?: number | undefined; '@type'?: "ImageService1" | "ImageService2" | "ImageService3" | undefined; } | { type: "ImageService2"; profile: string | any[]; id: string; } | { '@id': string; profile: string | any[]; '@type': "ImageService2"; } | { type: "ImageService1" | "ImageService2" | "ImageService3"; profile: "level0" | "level1" | "level2"; id: string; })[]; width?: number | undefined; height?: number | undefined; }, { type: "Image"; service: ({ '@id': string; profile: string | any[]; '@context'?: "http://library.stanford.edu/iiif/image-api/1.1/context.json" | "http://iiif.io/api/image/1/context.json" | "http://iiif.io/api/image/2/context.json" | "https://iiif.io/api/image/2/context.json" | undefined; width?: number | undefined; height?: number | undefined; '@type'?: "ImageService1" | "ImageService2" | "ImageService3" | undefined; } | { type: "ImageService2"; profile: string | any[]; id: string; } | { '@id': string; profile: string | any[]; '@type': "ImageService2"; } | { type: "ImageService1" | "ImageService2" | "ImageService3"; profile: "level0" | "level1" | "level2"; id: string; })[]; width?: number | undefined; height?: number | undefined; }>, z.ZodArray<z.ZodObject<{ type: z.ZodLiteral<"Image">; width: z.ZodOptional<z.ZodNumber>; height: z.ZodOptional<z.ZodNumber>; service: z.ZodArray<z.ZodUnion<[z.ZodObject<{ '@id': z.ZodString; '@type': z.ZodOptional<z.ZodEnum<["ImageService1", "ImageService2", "ImageService3"]>>; profile: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{ formats: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; maxArea: z.ZodOptional<z.ZodNumber>; maxHeight: z.ZodOptional<z.ZodNumber>; maxWidth: z.ZodOptional<z.ZodNumber>; qualities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; supports: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { formats?: string[] | undefined; maxArea?: number | undefined; maxHeight?: number | undefined; maxWidth?: number | undefined; qualities?: string[] | undefined; supports?: string[] | undefined; }, { formats?: string[] | undefined; maxArea?: number | undefined; maxHeight?: number | undefined; maxWidth?: number | undefined; qualities?: string[] | undefined; supports?: string[] | undefined; }>, z.ZodAny]>, "many">]>]>, z.ZodEnum<["level0", "level1", "level2"]>]>; width: z.ZodOptional<z.ZodNumber>; height: z.ZodOptional<z.ZodNumber>; '@context': z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"http://library.stanford.edu/iiif/image-api/1.1/context.json">, z.ZodLiteral<"http://iiif.io/api/image/1/context.json">]>, z.ZodUnion<[z.ZodLiteral<"http://iiif.io/api/image/2/context.json">, z.ZodLiteral<"https://iiif.io/api/image/2/context.json">]>]>>; }, "strip", z.ZodTypeAny, { '@id': string; profile: string | any[]; '@context'?: "http://library.stanford.edu/iiif/image-api/1.1/context.json" | "http://iiif.io/api/image/1/context.json" | "http://iiif.io/api/image/2/context.json" | "https://iiif.io/api/image/2/context.json" | undefined; width?: number | undefined; height?: number | undefined; '@type'?: "ImageService1" | "ImageService2" | "ImageService3" | undefined; }, { '@id': string; profile: string | any[]; '@context'?: "http://library.stanford.edu/iiif/image-api/1.1/context.json" | "http://iiif.io/api/image/1/context.json" | "http://iiif.io/api/image/2/context.json" | "https://iiif.io/api/image/2/context.json" | undefined; width?: number | undefined; height?: number | undefined; '@type'?: "ImageService1" | "ImageService2" | "ImageService3" | undefined; }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"ImageService2">; profile: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{ formats: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; maxArea: z.ZodOptional<z.ZodNumber>; maxHeight: z.ZodOptional<z.ZodNumber>; maxWidth: z.ZodOptional<z.ZodNumber>; qualities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; supports: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { formats?: string[] | undefined; maxArea?: number | undefined; maxHeight?: number | undefined; maxWidth?: number | undefined; qualities?: string[] | undefined; supports?: string[] | undefined; }, { formats?: string[] | undefined; maxArea?: number | undefined; maxHeight?: number | undefined; maxWidth?: number | undefined; qualities?: string[] | undefined; supports?: string[] | undefined; }>, z.ZodAny]>, "many">]>; }, "strip", z.ZodTypeAny, { type: "ImageService2"; profile: string | any[]; id: string; }, { type: "ImageService2"; profile: string | any[]; id: string; }>, z.ZodObject<{ '@id': z.ZodString; '@type': z.ZodLiteral<"ImageService2">; profile: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{ formats: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; maxArea: z.ZodOptional<z.ZodNumber>; maxHeight: z.ZodOptional<z.ZodNumber>; maxWidth: z.ZodOptional<z.ZodNumber>; qualities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; supports: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { formats?: string[] | undefined; maxArea?: number | undefined; maxHeight?: number | undefined; maxWidth?: number | undefined; qualities?: string[] | undefined; supports?: string[] | undefined; }, { formats?: string[] | undefined; maxArea?: number | undefined; maxHeight?: number | undefined; maxWidth?: number | undefined; qualities?: string[] | undefined; supports?: string[] | undefined; }>, z.ZodAny]>, "many">]>; }, "strip", z.ZodTypeAny, { '@id': string; profile: string | any[]; '@type': "ImageService2"; }, { '@id': string; profile: string | any[]; '@type': "ImageService2"; }>]>, z.ZodObject<{ id: z.ZodString; type: z.ZodEnum<["ImageService1", "ImageService2", "ImageService3"]>; profile: z.ZodEnum<["level0", "level1", "level2"]>; }, "strip", z.ZodTypeAny, { type: "ImageService1" | "ImageService2" | "ImageService3"; profile: "level0" | "level1" | "level2"; id: string; }, { type: "ImageService1" | "ImageService2" | "ImageService3"; profile: "level0" | "level1" | "level2"; id: string; }>]>]>, "many">; }, "strip", z.ZodTypeAny, { type: "Image"; service: ({ '@id': string; profile: string | any[]; '@context'?: "http://library.stanford.edu/iiif/image-api/1.1/context.json" | "http://iiif.io/api/image/1/context.json" | "http://iiif.io/api/image/2/context.json" | "https://iiif.io/api/image/2/context.json" | undefined; width?: number | undefined; height?: number | undefined; '@type'?: "ImageService1" | "ImageService2" | "ImageService3" | undefined; } | { type: "ImageService2"; profile: string | any[]; id: string; } | { '@id': string; profile: string | any[]; '@type': "ImageService2"; } | { type: "ImageService1" | "ImageService2" | "ImageService3"; profile: "level0" | "level1" | "level2"; id: string; })[]; width?: number | undefined; height?: number | undefined; }, { type: "Image"; service: ({ '@id': string; profile: string | any[]; '@context'?: "http://library.stanford.edu/iiif/image-api/1.1/context.json" | "http://iiif.io/api/image/1/context.json" | "http://iiif.io/api/image/2/context.json" | "https://iiif.io/api/image/2/context.json" | undefined; width?: number | undefined; height?: number | undefined; '@type'?: "ImageService1" | "ImageService2" | "ImageService3" | undefined; } | { type: "ImageService2"; profile: string | any[]; id: string; } | { '@id': string; profile: string | any[]; '@type': "ImageService2"; } | { type: "ImageService1" | "ImageService2" | "ImageService3"; profile: "level0" | "level1" | "level2"; id: string; })[]; width?: number | undefined; height?: number | undefined; }>, "many">]>; }, "strip", z.ZodTypeAny, { type: "Annotation"; body: { type: "Image"; service: ({ '@id': string; profile: string | any[]; '@context'?: "http://library.stanford.edu/iiif/image-api/1.1/context.json" | "http://iiif.io/api/image/1/context.json" | "http://iiif.io/api/image/2/context.json" | "https://iiif.io/api/image/2/context.json" | undefined; width?: number | undefined; height?: number | undefined; '@type'?: "ImageService1" | "ImageService2" | "ImageService3" | undefined; } | { type: "ImageService2"; profile: string | any[]; id: string; } | { '@id': string; profile: string | any[]; '@type': "ImageService2"; } | { type: "ImageService1" | "ImageService2" | "ImageService3"; profile: "level0" | "level1" | "level2"; id: string; })[]; width?: number | undefined; height?: number | undefined; } | { type: "Image"; service: ({ '@id': string; profile: string | any[]; '@context'?: "http://library.stanford.edu/iiif/image-api/1.1/context.json" | "http://iiif.io/api/image/1/context.json" | "http://iiif.io/api/image/2/context.json" | "https://iiif.io/api/image/2/context.json" | undefined; width?: number | undefined; height?: number | undefined; '@type'?: "ImageService1" | "ImageService2" | "ImageService3" | undefined; } | { type: "ImageService2"; profile: string | any[]; id: string; } | { '@id': string; profile: string | any[]; '@type': "ImageService2"; } | { type: "ImageService1" | "ImageService2" | "ImageService3"; profile: "level0" | "level1" | "level2"; id: string; })[]; width?: number | undefined; height?: number | undefined; }[]; }, { type: "Annotation"; body: { type: "Image"; service: ({ '@id': string; profile: string | any[]; '@context'?: "http://library.stanford.edu/iiif/image-api/1.1/context.json" | "http://iiif.io/api/image/1/context.json" | "http://iiif.io/api/image/2/context.json" | "https://iiif.io/api/image/2/context.json" | undefined; width?: number | undefined; height?: number | undefined; '@type'?: "ImageService1" | "ImageService2" | "ImageService3" | undefined; } | { type: "ImageService2"; profile: string | any[]; id: string; } | { '@id': string; profile: string | any[]; '@type': "ImageService2"; } | { type: "ImageService1" | "ImageService2" | "ImageService3"; profile: "level0" | "level1" | "level2"; id: string; })[]; width?: number | undefined; height?: number | undefined; } | { type: "Image"; service: ({ '@id': string; profile: string | any[]; '@context'?: "http://library.stanford.edu/iiif/image-api/1.1/context.json" | "http://iiif.io/api/image/1/context.json" | "http://iiif.io/api/image/2/context.json" | "https://iiif.io/api/image/2/context.json" | undefined; width?: number | undefined; height?: number | undefined; '@type'?: "ImageService1" | "ImageService2" | "ImageService3" | undefined; } | { type: "ImageService2"; profile: string | any[]; id: string; } | { '@id': string; profile: string | any[]; '@type': "ImageService2"; } | { type: "ImageService1" | "ImageService2" | "ImageService3"; profile: "level0" | "level1" | "level2"; id: string; })[]; width?: number | undefined; height?: number | undefined; }[]; }>, "many">; }, "strip", z.ZodTypeAny, { type: "AnnotationPage"; items: { type: "Annotation"; body: { type: "Image"; service: ({ '@id': string; profile: string | any[]; '@context'?: "http://library.stanford.edu/iiif/image-api/1.1/context.json" | "http://iiif.io/api/image/1/context.json" | "http://iiif.io/api/image/2/context.json" | "https://iiif.io/api/image/2/context.json" | undefined; width?: number | undefined; height?: number | undefined; '@type'?: "ImageService1" | "ImageService2" | "ImageService3" | undefined; } | { type: "ImageService2"; profile: string | any[]; id: string; } | { '@id': string; profile: string | any[]; '@type': "ImageService2"; } | { type: "ImageService1" | "ImageService2" | "ImageService3"; profile: "level0" | "level1" | "level2"; id: string; })[]; width?: number | undefined; height?: number | undefined; } | { type: "Image"; service: ({ '@id': string; profile: string | any[]; '@context'?: "http://library.stanford.edu/iiif/image-api/1.1/context.json" | "http://iiif.io/api/image/1/context.json" | "http://iiif.io/api/image/2/context.json" | "https://iiif.io/api/image/2/context.json" | undefined; width?: number | undefined; height?: number | undefined; '@type'?: "ImageService1" | "ImageService2" | "ImageService3" | undefined; } | { type: "ImageService2"; profile: string | any[]; id: string; } | { '@id': string; profile: string | any[]; '@type': "ImageService2"; } | { type: "ImageService1" | "ImageService2" | "ImageService3"; profile: "level0" | "level1" | "level2"; id: string; })[]; width?: number | undefined; height?: number | undefined; }[]; }[]; }, { type: "AnnotationPage"; items: { type: "Annotation"; body: { type: "Image"; service: ({ '@id': string; profile: string | any[]; '@context'?: "http://library.stanford.edu/iiif/image-api/1.1/context.json" | "http://iiif.io/api/image/1/context.json" | "http://iiif.io/api/image/2/context.json" | "https://iiif.io/api/image/2/context.json" | undefined; width?: number | undefined; height?: number | undefined; '@type'?: "ImageService1" | "ImageService2" | "ImageService3" | undefined; } | { type: "ImageService2"; profile: string | any[]; id: string; } | { '@id': string; profile: string | any[]; '@type': "ImageService2"; } | { type: "ImageService1" | "ImageService2" | "ImageService3"; profile: "level0" | "level1" | "level2"; id: string; })[]; width?: number | undefined; height?: number | undefined; } | { type: "Image"; service: ({ '@id': string; profile: string | any[]; '@context'?: "http://library.stanford.edu/iiif/image-api/1.1/context.json" | "http://iiif.io/api/image/1/context.json" | "http://iiif.io/api/image/2/context.json" | "https://iiif.io/api/image/2/context.json" | undefined; width?: number | undefined; height?: number | undefined; '@type'?: "ImageService1" | "ImageService2" | "ImageService3" | undefined; } | { type: "ImageService2"; profile: string | any[]; id: string; } | { '@id': string; profile: string | any[]; '@type': "ImageService2"; } | { type: "ImageService1" | "ImageService2" | "ImageService3"; profile: "level0" | "level1" | "level2"; id: string; })[]; width?: number | undefined; height?: number | undefined; }[]; }[]; }>, "many">; label: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>, "many">>>; metadata: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodAny, z.ZodObject<{ label: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>, "many">>>; value: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>, "many">>>; }, "strip", z.ZodTypeAny, { value?: Record<string, (string | number | boolean)[]> | undefined; label?: Record<string, (string | number | boolean)[]> | undefined; }, { value?: Record<string, (string | number | boolean)[]> | undefined; label?: Record<string, (string | number | boolean)[]> | undefined; }>]>, any, any>, "many">>; }, "strip", z.ZodTypeAny, { type: "Canvas"; items: { type: "AnnotationPage"; items: { type: "Annotation"; body: { type: "Image"; service: ({ '@id': string; profile: string | any[]; '@context'?: "http://library.stanford.edu/iiif/image-api/1.1/context.json" | "http://iiif.io/api/image/1/context.json" | "http://iiif.io/api/image/2/context.json" | "https://iiif.io/api/image/2/context.json" | undefined; width?: number | undefined; height?: number | undefined; '@type'?: "ImageService1" | "ImageService2" | "ImageService3" | undefined; } | { type: "ImageService2"; profile: string | any[]; id: string; } | { '@id': string; profile: string | any[]; '@type': "ImageService2"; } | { type: "ImageService1" | "ImageService2" | "ImageService3"; profile: "level0" | "level1" | "level2"; id: string; })[]; width?: number | undefined; height?: number | undefined; } | { type: "Image"; service: ({ '@id': string; profile: string | any[]; '@context'?: "http://library.stanford.edu/iiif/image-api/1.1/context.json" | "http://iiif.io/api/image/1/context.json" | "http://iiif.io/api/image/2/context.json" | "https://iiif.io/api/image/2/context.json" | undefined; width?: number | undefined; height?: number | undefined; '@type'?: "ImageService1" | "ImageService2" | "ImageService3" | undefined; } | { type: "ImageService2"; profile: string | any[]; id: string; } | { '@id': string; profile: string | any[]; '@type': "ImageService2"; } | { type: "ImageService1" | "ImageService2" | "ImageService3"; profile: "level0" | "level1" | "level2"; id: string; })[]; width?: number | undefined; height?: number | undefined; }[]; }[]; }[]; width: number; height: number; id: string; label?: Record<string, (string | number | boolean)[]> | undefined; metadata?: any[] | undefined; }, { type: "Canvas"; items: { type: "AnnotationPage"; items: { type: "Annotation"; body: { type: "Image"; service: ({ '@id': string; profile: string | any[]; '@context'?: "http://library.stanford.edu/iiif/image-api/1.1/context.json" | "http://iiif.io/api/image/1/context.json" | "http://iiif.io/api/image/2/context.json" | "https://iiif.io/api/image/2/context.json" | undefined; width?: number | undefined; height?: number | undefined; '@type'?: "ImageService1" | "ImageService2" | "ImageService3" | undefined; } | { type: "ImageService2"; profile: string | any[]; id: string; } | { '@id': string; profile: string | any[]; '@type': "ImageService2"; } | { type: "ImageService1" | "ImageService2" | "ImageService3"; profile: "level0" | "level1" | "level2"; id: string; })[]; width?: number | undefined; height?: number | undefined; } | { type: "Image"; service: ({ '@id': string; profile: string | any[]; '@context'?: "http://library.stanford.edu/iiif/image-api/1.1/context.json" | "http://iiif.io/api/image/1/context.json" | "http://iiif.io/api/image/2/context.json" | "https://iiif.io/api/image/2/context.json" | undefined; width?: number | undefined; height?: number | undefined; '@type'?: "ImageService1" | "ImageService2" | "ImageService3" | undefined; } | { type: "ImageService2"; profile: string | any[]; id: string; } | { '@id': string; profile: string | any[]; '@type': "ImageService2"; } | { type: "ImageService1" | "ImageService2" | "ImageService3"; profile: "level0" | "level1" | "level2"; id: string; })[]; width?: number | undefined; height?: number | undefined; }[]; }[]; }[]; width: number; height: number; id: string; label?: Record<string, (string | number | boolean)[]> | undefined; metadata?: any[] | undefined; }>; export declare const Manifest3Schema: z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"Manifest">; items: z.ZodArray<z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"Canvas">; width: z.ZodNumber; height: z.ZodNumber; items: z.ZodArray<z.ZodObject<{ type: z.ZodLiteral<"AnnotationPage">; items: z.ZodArray<z.ZodObject<{ type: z.ZodLiteral<"Annotation">; body: z.ZodUnion<[z.ZodObject<{ type: z.ZodLiteral<"Image">; width: z.ZodOptional<z.ZodNumber>; height: z.ZodOptional<z.ZodNumber>; service: z.ZodArray<z.ZodUnion<[z.ZodObject<{ '@id': z.ZodString; '@type': z.ZodOptional<z.ZodEnum<["ImageService1", "ImageService2", "ImageService3"]>>; profile: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{ formats: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; maxArea: z.ZodOptional<z.ZodNumber>; maxHeight: z.ZodOptional<z.ZodNumber>; maxWidth: z.ZodOptional<z.ZodNumber>; qualities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; supports: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { formats?: string[] | undefined; maxArea?: number | undefined; maxHeight?: number | undefined; maxWidth?: number | undefined; qualities?: string[] | undefined; supports?: string[] | undefined; }, { formats?: string[] | undefined; maxArea?: number | undefined; maxHeight?: number | undefined; maxWidth?: number | undefined; qualities?: string[] | undefined; supports?: string[] | undefined; }>, z.ZodAny]>, "many">]>]>, z.ZodEnum<["level0", "level1", "level2"]>]>; width: z.ZodOptional<z.ZodNumber>; height: z.ZodOptional<z.ZodNumber>; '@context': z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"http://library.stanford.edu/iiif/image-api/1.1/context.json">, z.ZodLiteral<"http://iiif.io/api/image/1/context.json">]>, z.ZodUnion<[z.ZodLiteral<"http://iiif.io/api/image/2/context.json">, z.ZodLiteral<"https://iiif.io/api/image/2/context.json">]>]>>; }, "strip", z.ZodTypeAny, { '@id': string; profile: string | any[]; '@context'?: "http://library.stanford.edu/iiif/image-api/1.1/context.json" | "http://iiif.io/api/image/1/context.json" | "http://iiif.io/api/image/2/context.json" | "https://iiif.io/api/image/2/context.json" | undefined; width?: number | undefined; height?: number | undefined; '@type'?: "ImageService1" | "ImageService2" | "ImageService3" | undefined; }, { '@id': string; profile: string | any[]; '@context'?: "http://library.stanford.edu/iiif/image-api/1.1/context.json" | "http://iiif.io/api/image/1/context.json" | "http://iiif.io/api/image/2/context.json" | "https://iiif.io/api/image/2/context.json" | undefined;