@allmaps/iiif-parser
Version:
Allmaps IIIF parser
36 lines (35 loc) • 1.52 kB
TypeScript
import { z } from 'zod';
export declare const image1ProfileUriRegex: RegExp;
export declare const Image1ProfileUri: z.ZodString;
export declare const Image1ProfileSchema: z.ZodString;
export declare const Image1ContextString = "http://library.stanford.edu/iiif/image-api/1.1/context.json";
export declare const Image1ContextStringIncorrect = "http://iiif.io/api/image/1/context.json";
export declare const Image1Context: z.ZodLiteral<"http://library.stanford.edu/iiif/image-api/1.1/context.json">;
export declare const Image1Schema: z.ZodObject<{
'@context': z.ZodLiteral<"http://library.stanford.edu/iiif/image-api/1.1/context.json">;
'@id': z.ZodString;
profile: z.ZodOptional<z.ZodString>;
width: z.ZodNumber;
height: z.ZodNumber;
scale_factors: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
tile_width: z.ZodOptional<z.ZodNumber>;
tile_height: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
'@id': string;
width: number;
height: number;
'@context': "http://library.stanford.edu/iiif/image-api/1.1/context.json";
profile?: string | undefined;
scale_factors?: number[] | undefined;
tile_width?: number | undefined;
tile_height?: number | undefined;
}, {
'@id': string;
width: number;
height: number;
'@context': "http://library.stanford.edu/iiif/image-api/1.1/context.json";
profile?: string | undefined;
scale_factors?: number[] | undefined;
tile_width?: number | undefined;
tile_height?: number | undefined;
}>;