@allmaps/iiif-parser
Version:
Allmaps IIIF parser
156 lines (155 loc) • 6.01 kB
TypeScript
import { z } from 'zod';
export declare const image2ProfileUriRegex: RegExp;
export declare const Image2ProfileUri: z.ZodString;
export declare const Image2ProfileDescriptionSchema: 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;
}>;
type ValidImage2ProfileArray = [
string,
...(string | z.infer<typeof Image2ProfileDescriptionSchema>)[]
];
export declare const Image2ProfileSchema: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodEffects<z.ZodUnion<[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.ZodUnknown]>, string | {
formats?: string[] | undefined;
maxArea?: number | undefined;
maxHeight?: number | undefined;
maxWidth?: number | undefined;
qualities?: string[] | undefined;
supports?: string[] | undefined;
} | undefined, unknown>, "many">]>, string | ValidImage2ProfileArray, string | unknown[]>;
export declare const Image2ContextString = "http://iiif.io/api/image/2/context.json";
export declare const Image2Context: z.ZodUnion<[z.ZodLiteral<"http://iiif.io/api/image/2/context.json">, z.ZodLiteral<"https://iiif.io/api/image/2/context.json">, z.ZodString]>;
export declare const Image2Schema: z.ZodObject<{
'@id': z.ZodString;
'@type': z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"iiif:Image">, z.ZodLiteral<"ImageService2">]>>;
'@context': z.ZodUnion<[z.ZodLiteral<"http://iiif.io/api/image/2/context.json">, z.ZodLiteral<"https://iiif.io/api/image/2/context.json">, z.ZodString]>;
protocol: z.ZodLiteral<"http://iiif.io/api/image">;
width: z.ZodNumber;
height: z.ZodNumber;
profile: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodEffects<z.ZodUnion<[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.ZodUnknown]>, string | {
formats?: string[] | undefined;
maxArea?: number | undefined;
maxHeight?: number | undefined;
maxWidth?: number | undefined;
qualities?: string[] | undefined;
supports?: string[] | undefined;
} | undefined, unknown>, "many">]>, string | ValidImage2ProfileArray, string | unknown[]>;
sizes: z.ZodOptional<z.ZodArray<z.ZodObject<{
width: z.ZodNumber;
height: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
width: number;
height: number;
}, {
width: number;
height: number;
}>, "many">>;
tiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
width: z.ZodNumber;
height: z.ZodOptional<z.ZodNumber>;
scaleFactors: z.ZodArray<z.ZodNumber, "many">;
}, "strip", z.ZodTypeAny, {
width: number;
scaleFactors: number[];
height?: number | undefined;
}, {
width: number;
scaleFactors: number[];
height?: number | undefined;
}>, "many">>;
}, "strip", z.ZodTypeAny, {
'@id': string;
width: number;
height: number;
profile: string | ValidImage2ProfileArray;
'@context': string;
protocol: "http://iiif.io/api/image";
'@type'?: "ImageService2" | "iiif:Image" | undefined;
sizes?: {
width: number;
height: number;
}[] | undefined;
tiles?: {
width: number;
scaleFactors: number[];
height?: number | undefined;
}[] | undefined;
}, {
'@id': string;
width: number;
height: number;
profile: string | unknown[];
'@context': string;
protocol: "http://iiif.io/api/image";
'@type'?: "ImageService2" | "iiif:Image" | undefined;
sizes?: {
width: number;
height: number;
}[] | undefined;
tiles?: {
width: number;
scaleFactors: number[];
height?: number | undefined;
}[] | undefined;
}>;
export {};