UNPKG

maniiifest

Version:

Typesafe IIIF presentation v3 manifest and collection parsing without external dependencies

1,146 lines (1,145 loc) 47.3 kB
export declare type SpecificationT = { kind: 'Manifest'; value: ManifestT; } | { kind: 'Collection'; value: CollectionT; }; export declare type CollectionT = { context?: ContextT; id: IdT; type: TypeT; label: LabelT; metadata?: MetadataT[]; summary?: SummaryT; requiredStatement?: RequiredStatementT; thumbnail?: ThumbnailT[]; rendering?: RenderingT[]; rights?: RightsT; seeAlso?: SeeAlsoT[]; homepage?: HomepageT[]; provider?: ProviderT[]; navDate?: NavDateT; behavior?: BehaviorT[]; partOf?: PartOfT[]; service?: ServiceT; services?: ServiceT; placeholderCanvas?: PlaceholderCanvasT; accompanyingCanvas?: AccompanyingCanvasT; navPlace?: NavPlaceT; items?: SpecificationT[]; }; export declare type ManifestT = { context?: ContextT; id: IdT; type: TypeT; label: LabelT; metadata?: MetadataT[]; service?: ServiceT; services?: ServiceT; requiredStatement?: RequiredStatementT; summary?: SummaryT; thumbnail?: ThumbnailT[]; rendering?: RenderingT[]; viewingDirection?: ViewingDirectionT; behavior?: BehaviorT[]; navDate?: NavDateT; navPlace?: NavPlaceT; rights?: RightsT; seeAlso?: SeeAlsoT[]; homepage?: HomepageT[]; provider?: ProviderT[]; partOf?: PartOfT[]; start?: StartT; items?: CanvasT[]; structures?: RangeT[]; annotations?: AnnotationPageT[]; }; export declare type ContextT = { kind: 'Value'; value: ContextValue; } | { kind: 'Array'; value: ContextArray; }; export declare type ContextValue = string; export declare type ContextArray = string[]; export declare type ClassT = { id: IdT; type: TypeT; label?: LabelT; }; export declare type CanvasCoreT = { id: IdT; type: TypeT; label?: LabelT; height?: HeightT; width?: WidthT; duration?: DurationT; metadata?: MetadataT[]; summary?: SummaryT; requiredStatement?: RequiredStatementT; rendering?: RenderingT[]; rights?: RightsT; navDate?: NavDateT; navPlace?: NavPlaceT; provider?: ProviderT[]; seeAlso?: SeeAlsoT[]; service?: ServiceT; thumbnail?: ThumbnailT[]; homepage?: HomepageT[]; behavior?: BehaviorT[]; partOf?: PartOfT[]; items?: AnnotationPageT[]; annotations?: AnnotationPageT[]; }; export declare type CanvasT = { id: IdT; type: TypeT; label?: LabelT; height?: HeightT; width?: WidthT; duration?: DurationT; metadata?: MetadataT[]; summary?: SummaryT; requiredStatement?: RequiredStatementT; rendering?: RenderingT[]; rights?: RightsT; navDate?: NavDateT; navPlace?: NavPlaceT; provider?: ProviderT[]; seeAlso?: SeeAlsoT[]; service?: ServiceT; thumbnail?: ThumbnailT[]; homepage?: HomepageT[]; behavior?: BehaviorT[]; partOf?: PartOfT[]; items?: AnnotationPageT[]; annotations?: AnnotationPageT[]; placeholderCanvas?: PlaceholderCanvasT; accompanyingCanvas?: AccompanyingCanvasT; }; export declare type PlaceholderCanvasT = { id: IdT; type: TypeT; label?: LabelT; height?: HeightT; width?: WidthT; duration?: DurationT; metadata?: MetadataT[]; summary?: SummaryT; requiredStatement?: RequiredStatementT; rendering?: RenderingT[]; rights?: RightsT; navDate?: NavDateT; navPlace?: NavPlaceT; provider?: ProviderT[]; seeAlso?: SeeAlsoT[]; service?: ServiceT; thumbnail?: ThumbnailT[]; homepage?: HomepageT[]; behavior?: BehaviorT[]; partOf?: PartOfT[]; items?: AnnotationPageT[]; annotations?: AnnotationPageT[]; }; export declare type AccompanyingCanvasT = { id: IdT; type: TypeT; label?: LabelT; height?: HeightT; width?: WidthT; duration?: DurationT; metadata?: MetadataT[]; summary?: SummaryT; requiredStatement?: RequiredStatementT; rendering?: RenderingT[]; rights?: RightsT; navDate?: NavDateT; navPlace?: NavPlaceT; provider?: ProviderT[]; seeAlso?: SeeAlsoT[]; service?: ServiceT; thumbnail?: ThumbnailT[]; homepage?: HomepageT[]; behavior?: BehaviorT[]; partOf?: PartOfT[]; items?: AnnotationPageT[]; annotations?: AnnotationPageT[]; }; export declare type NavPlaceT = { id?: IdT; type: TypeT; features?: FeatureT[]; }; export declare type FeatureCollectionT = { id?: IdT; type: TypeT; features?: FeatureT[]; transformation?: TransformationT; }; export declare type TransformationT = { type?: TypeT; options?: OptionsT; }; export declare type OptionsT = { order?: OrderT; }; export declare type OrderT = number; export declare type FeatureT = { id?: IdT; type?: TypeT; properties?: PropertiesT; geometry?: GeometryT; }; export declare type PropertiesT = { label?: LabelT; }; export declare type GeometriesT = { kind: 'Point'; value: GeometryPoint; } | { kind: 'MultiPoint'; value: GeometryMultiPoint; } | { kind: 'LineString'; value: GeometryLineString; } | { kind: 'MultiLineString'; value: GeometryMultiLineString; } | { kind: 'Polygon'; value: GeometryPolygon; } | { kind: 'MultiPolygon'; value: GeometryMultiPolygon; }; export declare type GeometryT = { kind: 'Point'; value: GeometryPoint; } | { kind: 'MultiPoint'; value: GeometryMultiPoint; } | { kind: 'LineString'; value: GeometryLineString; } | { kind: 'MultiLineString'; value: GeometryMultiLineString; } | { kind: 'Polygon'; value: GeometryPolygon; } | { kind: 'MultiPolygon'; value: GeometryMultiPolygon; } | { kind: 'GeometryCollection'; value: GeometryCollection; }; export declare type GeometryPoint = { type?: TypeT; coordinates?: PointCoordinatesT[]; }; export declare type GeometryMultiPoint = { type?: TypeT; coordinates?: MultiPointCoordinatesT[]; }; export declare type GeometryLineString = { type?: TypeT; coordinates?: LinestringCoordinatesT[]; }; export declare type GeometryMultiLineString = { type?: TypeT; coordinates?: MultiLinestringCoordinatesT[]; }; export declare type GeometryPolygon = { type?: TypeT; coordinates?: PolygonT[]; }; export declare type GeometryMultiPolygon = { type?: TypeT; coordinates?: MultiPolygonT[]; }; export declare type GeometryCollection = { type?: TypeT; geometries: GeometriesT[]; }; export declare type PointCoordinatesT = number; export declare type MultiPointCoordinatesT = [number, number]; export declare type LinestringCoordinatesT = number[]; export declare type MultiLinestringCoordinatesT = number[][]; export declare type PolygonT = [number, number][]; export declare type MultiPolygonT = [number, number][][]; export declare type AnnotationPageT = { context?: ContextT; id?: IdT; type: TypeT; label?: LabelT; partOf?: PartOfT; next?: NextT; startIndex?: StartIndexT; rendering?: RenderingT[]; service?: ServiceT; thumbnail?: ThumbnailT[]; items?: AnnotationT[]; }; export declare type AnnotationT = { context?: ContextT; id: IdT; type: TypeT; service?: ServiceT; thumbnail?: ThumbnailT[]; rendering?: RenderingT[]; motivation?: MotivationT; created?: CreatedT; creator?: CreatorT; generator?: GeneratorT; modified?: ModifiedT; body?: BodyT; target?: TargetT; }; export declare type CreatorT = { kind: 'Value'; value: CreatorItemT; } | { kind: 'Array'; value: CreatorItemT[]; }; export declare type CreatorItemT = { kind: 'Ref'; value: CreatorItemRef; } | { kind: 'Object'; value: CreatorItemObject; }; export declare type CreatorItemRef = string; export declare type CreatorItemObject = { id?: IdT; type?: TypeT; name?: NameT; nickname?: NicknameT; email?: EmailStringsT; email_sha1?: EmailSha1StringsT; homepage?: HomepageStringsT; }; export declare type GeneratorT = { kind: 'Value'; value: GeneratorItemT; } | { kind: 'Array'; value: GeneratorItemT[]; }; export declare type GeneratorItemT = { kind: 'Ref'; value: GeneratorItemRef; } | { kind: 'Object'; value: GeneratorItemObject; }; export declare type GeneratorItemRef = string; export declare type GeneratorItemObject = { id?: IdT; type?: TypeT; name?: NameT; nickname?: NicknameT; email?: EmailStringsT; email_sha1?: EmailSha1StringsT; homepage?: HomepageStringsT; }; export declare type AgentT = { id?: IdT; type?: TypeT; name?: NameT; nickname?: NicknameT; email?: EmailStringsT; email_sha1?: EmailSha1StringsT; homepage?: HomepageStringsT; }; export declare type EmailStringsT = StringsT; export declare type EmailSha1StringsT = StringsT; export declare type HomepageStringsT = StringsT; export declare type BodyT = { kind: 'Value'; value: AnnotationBodyT; } | { kind: 'Array'; value: AnnotationBodyT[]; }; export declare type AnnotationBodyItemsT = { kind: 'String'; value: AnnotationBodyString; } | { kind: 'Resource'; value: AnnotationBodyResource; } | { kind: 'SpecificResource'; value: AnnotationBodySpecificResource; } | { kind: 'TextualBody'; value: AnnotationBodyTextualBody; } | { kind: 'Feature'; value: AnnotationBodyFeature; } | { kind: 'FeatureCollection'; value: AnnotationBodyFeatureCollection; } | { kind: 'Untyped'; value: AnnotationBodyUntyped; }; export declare type AnnotationBodyT = { kind: 'String'; value: AnnotationBodyString; } | { kind: 'Resource'; value: AnnotationBodyResource; } | { kind: 'SpecificResource'; value: AnnotationBodySpecificResource; } | { kind: 'TextualBody'; value: AnnotationBodyTextualBody; } | { kind: 'Feature'; value: AnnotationBodyFeature; } | { kind: 'FeatureCollection'; value: AnnotationBodyFeatureCollection; } | { kind: 'Untyped'; value: AnnotationBodyUntyped; } | { kind: 'Choice'; value: AnnotationBodyChoice; }; export declare type AnnotationBodyUntyped = { id?: IdT; label?: LabelT; format?: FormatT; profile?: ProfileT; language?: LanguageT; value?: ValueT; }; export declare type AnnotationBodyString = string; export declare type AnnotationBodyResource = { id: IdT; type: TypeT; label?: LabelT; format?: FormatT; profile?: ProfileT; width?: WidthT; height?: HeightT; duration?: DurationT; language?: LanguageT; rendering?: RenderingT[]; thumbnail?: ThumbnailT[]; service?: ServiceT; annotations?: AnnotationPageT[]; }; export declare type AnnotationBodySpecificResource = { id?: IdT; type?: TypeT; format?: FormatT; accessibility?: AccessibilityT; source: SourceT; selector?: SelectorT; language?: LanguageT; }; export declare type AnnotationBodyTextualBody = { type: TypeT; language?: LanguageT; format?: FormatT; value?: ValueT; creator?: CreatorT; generator?: GeneratorT; }; export declare type AnnotationBodyFeature = { id?: IdT; type?: TypeT; properties?: PropertiesT; geometry?: GeometryT; }; export declare type AnnotationBodyFeatureCollection = { id?: IdT; type: TypeT; features?: FeatureT[]; transformation?: TransformationT; }; export declare type AnnotationBodyChoice = { type?: TypeT; items: AnnotationBodyItemsT[]; }; export declare type TargetT = { kind: 'Value'; value: AnnotationTargetT; } | { kind: 'Array'; value: AnnotationTargetT[]; }; export declare type AnnotationTargetT = { kind: 'String'; value: AnnotationTargetString; } | { kind: 'SelectorTarget'; value: AnnotationTargetSelectorTarget; } | { kind: 'SpecificResource'; value: AnnotationTargetSpecificResource; } | { kind: 'CanvasRef'; value: AnnotationTargetCanvasRef; }; export declare type AnnotationTargetString = string; export declare type AnnotationTargetSelectorTarget = { source: IdT; scope: IdT; language?: LanguageT; }; export declare type AnnotationTargetSpecificResource = SpecificResourceT; export declare type AnnotationTargetCanvasRef = { id: IdT; partOf?: PartOfT; language?: LanguageT; }; export declare type SpecificResourceT = { id?: IdT; type?: TypeT; format?: FormatT; accessibility?: AccessibilityT; source: SourceT; selector?: SelectorT; language?: LanguageT; }; export declare type SourceT = { kind: 'Ref'; value: SourceRef; } | { kind: 'Object'; value: SourceObject; }; export declare type SourceRef = IdT; export declare type SourceObject = ClassT; export declare type SelectorT = { kind: 'Value'; value: ResourceSelectorT; } | { kind: 'Array'; value: ResourceSelectorT[]; }; export declare type ResourceSelectorT = { kind: 'String'; value: ResourceSelectorString; } | { kind: 'PointSelector'; value: ResourceSelectorPoint; } | { kind: 'FragmentSelector'; value: ResourceSelectorFragment; } | { kind: 'SvgSelector'; value: ResourceSelectorSvg; } | { kind: 'ImageApiSelector'; value: ResourceSelectorImageApi; } | { kind: 'TextQuoteSelector'; value: ResourceSelectorTextQuote; } | { kind: 'XPathSelector'; value: ResourceSelectorXpath; }; export declare type ResourceSelectorString = string; export declare type ResourceSelectorPoint = { type: TypeT; t?: DurationT; x_?: DimensionT; y?: DimensionT; }; export declare type ResourceSelectorFragment = { type: TypeT; conformsTo?: ConformsToT; value: ValueT; }; export declare type ConformsToT = string; export declare type ResourceSelectorSvg = { type: TypeT; value: ValueT; }; export declare type ResourceSelectorImageApi = { type: TypeT; region?: RegionT; size?: SizeT; rotation?: RotationT; quality?: QualityT; format?: FormatT; }; export declare type ResourceSelectorTextQuote = { type: TypeT; prefix?: PrefixT; exact: ExactT; suffix?: SuffixT; }; export declare type ResourceSelectorXpath = { type: TypeT; value: ValueT; }; export declare type MetadataT = { label: LngStringT; value: LngStringT; }; export declare type RequiredStatementT = { label: LngStringT; value: LngStringT; }; export declare type ThumbnailT = ResourceT; export declare type LogoT = ResourceT; export declare type ResourceT = { id: IdT; type: TypeT; label?: LabelT; format?: FormatT; profile?: ProfileT; width?: WidthT; height?: HeightT; duration?: DurationT; language?: LanguageT; rendering?: RenderingT[]; thumbnail?: ThumbnailT[]; service?: ServiceT; annotations?: AnnotationPageT[]; }; export declare type ServiceT = { kind: 'Value'; value: ServiceItemT; } | { kind: 'Array'; value: ServiceItemT[]; }; export declare type ServiceItemT = { kind: 'Modern'; value: ServiceItemModern; } | { kind: 'Legacy'; value: ServiceItemLegacy; }; export declare type ServiceItemModern = { id: IdT; type: TypeT; label?: LabelT; profile?: ProfileT; service?: ServiceT; }; export declare type ServiceItemLegacy = { id: IdT; type: TypeT; label?: LabelT; profile?: ProfileT; service?: ServiceT; }; export declare type LabelT = { kind: 'Plain'; value: LabelPlain; } | { kind: 'Multilingual'; value: LabelMultilingual; }; export declare type LabelPlain = string; export declare type LabelMultilingual = LngStringT; export declare type SummaryT = LngStringT; export declare type LngStringT = [string, string[]][]; export declare type LanguageT = { kind: 'Value'; value: LanguageValue; } | { kind: 'Array'; value: LanguageArray; }; export declare type LanguageValue = string; export declare type LanguageArray = string[]; export declare type ExternalT = { id: IdT; type: TypeT; label?: LabelT; format?: FormatT; profile?: ProfileT; }; export declare type SeeAlsoT = ExternalT; export declare type RenderingT = ExternalT; export declare type HomepageT = { id: IdT; type: TypeT; label?: LabelT; format?: FormatT; language?: LanguageT[]; }; export declare type ProviderT = { id: IdT; type: TypeT; label?: LabelT; homepage?: HomepageT[]; logo?: LogoT[]; seeAlso?: SeeAlsoT[]; }; export declare type PartOfT = { kind: 'Ref'; value: PartOfRef; } | { kind: 'Object'; value: PartOfObject; }; export declare type PartOfRef = string; export declare type PartOfObject = { id: IdT; type?: TypeT; label?: LabelT; total?: TotalT; }; export declare type StartT = ClassT; export declare type MotivationT = { kind: 'Value'; value: MotivationValue; } | { kind: 'Array'; value: MotivationArray; }; export declare type MotivationValue = string; export declare type MotivationArray = string[]; export declare type AnnotationCollectionT = { context?: ContextT; id: IdT; type: TypeT; label?: LabelT; rendering?: RenderingT[]; partOf?: PartOfT; total?: TotalT; first?: FirstT; last?: LastT; service?: ServiceT; thumbnail?: ThumbnailT[]; items?: AnnotationT[]; }; export declare type FirstT = { kind: 'Ref'; value: FirstRef; } | { kind: 'Object'; value: FirstObject; }; export declare type FirstRef = string; export declare type FirstObject = { id: IdT; type: TypeT; label?: LabelT; startIndex?: StartIndexT; thumbnail?: ThumbnailT[]; next?: NextT; items?: AnnotationT[]; }; export declare type RangeT = { id: IdT; type: TypeT; label?: LabelT; rendering?: RenderingT[]; supplementary?: AnnotationCollectionT; service?: ServiceT; placeholderCanvas?: PlaceholderCanvasT; accompanyingCanvas?: AccompanyingCanvasT; annotations?: AnnotationPageT[]; thumbnail?: ThumbnailT[]; navPlace?: NavPlaceT; behavior?: BehaviorT[]; items: RangeItemsT[]; }; export declare type RangeItemsT = { kind: 'SpecificResource'; value: SpecificResourceT; } | { kind: 'Canvas'; value: CanvasT; } | { kind: 'Range'; value: RangeT; }; export declare type StringsT = { kind: 'Value'; value: string; } | { kind: 'Array'; value: string[]; }; export declare type IdT = string; export declare type TypeT = string; export declare type HeightT = number; export declare type WidthT = number; export declare type DurationT = number; export declare type CreatedT = string; export declare type ModifiedT = string; export declare type FormatT = string; export declare type ProfileT = string; export declare type ViewingDirectionT = string; export declare type BehaviorT = string; export declare type NavDateT = string; export declare type RightsT = string; export declare type ValueT = string; export declare type AccessibilityT = string; export declare type DimensionT = number; export declare type PatternT = string; export declare type DefaultT = string; export declare type RegionT = string; export declare type SizeT = string; export declare type QualityT = string; export declare type RotationT = string; export declare type TotalT = number; export declare type LastT = string; export declare type NextT = string; export declare type StartIndexT = number; export declare type NameT = string; export declare type NicknameT = string; export declare type PrefixT = string; export declare type ExactT = string; export declare type SuffixT = string; export declare function _writeSpecificationT(x: SpecificationT, context?: any): any; export declare function _readSpecificationT(x: any, context?: any): SpecificationT; export declare function writeCollectionT(x: CollectionT, context?: any): any; export declare function readCollectionT(x: any, context?: any): CollectionT; export declare function writeManifestT(x: ManifestT, context?: any): any; export declare function readManifestT(x: any, context?: any): ManifestT; export declare function _writeContextT(x: ContextT, context?: any): any; export declare function _readContextT(x: any, context?: any): ContextT; export declare function writeContextValue(x: ContextValue, context?: any): any; export declare function readContextValue(x: any, context?: any): ContextValue; export declare function writeContextArray(x: ContextArray, context?: any): any; export declare function readContextArray(x: any, context?: any): ContextArray; export declare function writeClassT(x: ClassT, context?: any): any; export declare function readClassT(x: any, context?: any): ClassT; export declare function writeCanvasCoreT(x: CanvasCoreT, context?: any): any; export declare function readCanvasCoreT(x: any, context?: any): CanvasCoreT; export declare function writeCanvasT(x: CanvasT, context?: any): any; export declare function readCanvasT(x: any, context?: any): CanvasT; export declare function writePlaceholderCanvasT(x: PlaceholderCanvasT, context?: any): any; export declare function readPlaceholderCanvasT(x: any, context?: any): PlaceholderCanvasT; export declare function writeAccompanyingCanvasT(x: AccompanyingCanvasT, context?: any): any; export declare function readAccompanyingCanvasT(x: any, context?: any): AccompanyingCanvasT; export declare function writeNavPlaceT(x: NavPlaceT, context?: any): any; export declare function readNavPlaceT(x: any, context?: any): NavPlaceT; export declare function writeFeatureCollectionT(x: FeatureCollectionT, context?: any): any; export declare function readFeatureCollectionT(x: any, context?: any): FeatureCollectionT; export declare function writeTransformationT(x: TransformationT, context?: any): any; export declare function readTransformationT(x: any, context?: any): TransformationT; export declare function writeOptionsT(x: OptionsT, context?: any): any; export declare function readOptionsT(x: any, context?: any): OptionsT; export declare function writeOrderT(x: OrderT, context?: any): any; export declare function readOrderT(x: any, context?: any): OrderT; export declare function writeFeatureT(x: FeatureT, context?: any): any; export declare function readFeatureT(x: any, context?: any): FeatureT; export declare function writePropertiesT(x: PropertiesT, context?: any): any; export declare function readPropertiesT(x: any, context?: any): PropertiesT; export declare function writeGeometriesT(x: GeometriesT, context?: any): any; export declare function readGeometriesT(x: any, context?: any): GeometriesT; export declare function _writeGeometryT(x: GeometryT, context?: any): any; export declare function _readGeometryT(x: any, context?: any): GeometryT; export declare function writeGeometryPoint(x: GeometryPoint, context?: any): any; export declare function readGeometryPoint(x: any, context?: any): GeometryPoint; export declare function writeGeometryMultiPoint(x: GeometryMultiPoint, context?: any): any; export declare function readGeometryMultiPoint(x: any, context?: any): GeometryMultiPoint; export declare function writeGeometryLineString(x: GeometryLineString, context?: any): any; export declare function readGeometryLineString(x: any, context?: any): GeometryLineString; export declare function writeGeometryMultiLineString(x: GeometryMultiLineString, context?: any): any; export declare function readGeometryMultiLineString(x: any, context?: any): GeometryMultiLineString; export declare function writeGeometryPolygon(x: GeometryPolygon, context?: any): any; export declare function readGeometryPolygon(x: any, context?: any): GeometryPolygon; export declare function writeGeometryMultiPolygon(x: GeometryMultiPolygon, context?: any): any; export declare function readGeometryMultiPolygon(x: any, context?: any): GeometryMultiPolygon; export declare function writeGeometryCollection(x: GeometryCollection, context?: any): any; export declare function readGeometryCollection(x: any, context?: any): GeometryCollection; export declare function writePointCoordinatesT(x: PointCoordinatesT, context?: any): any; export declare function readPointCoordinatesT(x: any, context?: any): PointCoordinatesT; export declare function writeMultiPointCoordinatesT(x: MultiPointCoordinatesT, context?: any): any; export declare function readMultiPointCoordinatesT(x: any, context?: any): MultiPointCoordinatesT; export declare function writeLinestringCoordinatesT(x: LinestringCoordinatesT, context?: any): any; export declare function readLinestringCoordinatesT(x: any, context?: any): LinestringCoordinatesT; export declare function writeMultiLinestringCoordinatesT(x: MultiLinestringCoordinatesT, context?: any): any; export declare function readMultiLinestringCoordinatesT(x: any, context?: any): MultiLinestringCoordinatesT; export declare function writePolygonT(x: PolygonT, context?: any): any; export declare function readPolygonT(x: any, context?: any): PolygonT; export declare function writeMultiPolygonT(x: MultiPolygonT, context?: any): any; export declare function readMultiPolygonT(x: any, context?: any): MultiPolygonT; export declare function writeAnnotationPageT(x: AnnotationPageT, context?: any): any; export declare function readAnnotationPageT(x: any, context?: any): AnnotationPageT; export declare function writeAnnotationT(x: AnnotationT, context?: any): any; export declare function readAnnotationT(x: any, context?: any): AnnotationT; export declare function _writeCreatorT(x: CreatorT, context?: any): any; export declare function _readCreatorT(x: any, context?: any): CreatorT; export declare function _writeCreatorItemT(x: CreatorItemT, context?: any): any; export declare function _readCreatorItemT(x: any, context?: any): CreatorItemT; export declare function writeCreatorItemRef(x: CreatorItemRef, context?: any): any; export declare function readCreatorItemRef(x: any, context?: any): CreatorItemRef; export declare function writeCreatorItemObject(x: CreatorItemObject, context?: any): any; export declare function readCreatorItemObject(x: any, context?: any): CreatorItemObject; export declare function _writeGeneratorT(x: GeneratorT, context?: any): any; export declare function _readGeneratorT(x: any, context?: any): GeneratorT; export declare function _writeGeneratorItemT(x: GeneratorItemT, context?: any): any; export declare function _readGeneratorItemT(x: any, context?: any): GeneratorItemT; export declare function writeGeneratorItemRef(x: GeneratorItemRef, context?: any): any; export declare function readGeneratorItemRef(x: any, context?: any): GeneratorItemRef; export declare function writeGeneratorItemObject(x: GeneratorItemObject, context?: any): any; export declare function readGeneratorItemObject(x: any, context?: any): GeneratorItemObject; export declare function writeAgentT(x: AgentT, context?: any): any; export declare function readAgentT(x: any, context?: any): AgentT; export declare function _writeEmailStringsT(x: EmailStringsT, context?: any): any; export declare function _readEmailStringsT(x: any, context?: any): EmailStringsT; export declare function _writeEmailSha1StringsT(x: EmailSha1StringsT, context?: any): any; export declare function _readEmailSha1StringsT(x: any, context?: any): EmailSha1StringsT; export declare function _writeHomepageStringsT(x: HomepageStringsT, context?: any): any; export declare function _readHomepageStringsT(x: any, context?: any): HomepageStringsT; export declare function _writeBodyT(x: BodyT, context?: any): any; export declare function _readBodyT(x: any, context?: any): BodyT; export declare function _writeAnnotationBodyItemsT(x: AnnotationBodyItemsT, context?: any): any; export declare function _readAnnotationBodyItemsT(x: any, context?: any): AnnotationBodyItemsT; export declare function _writeAnnotationBodyT(x: AnnotationBodyT, context?: any): any; export declare function _readAnnotationBodyT(x: any, context?: any): AnnotationBodyT; export declare function writeAnnotationBodyUntyped(x: AnnotationBodyUntyped, context?: any): any; export declare function readAnnotationBodyUntyped(x: any, context?: any): AnnotationBodyUntyped; export declare function writeAnnotationBodyString(x: AnnotationBodyString, context?: any): any; export declare function readAnnotationBodyString(x: any, context?: any): AnnotationBodyString; export declare function writeAnnotationBodyResource(x: AnnotationBodyResource, context?: any): any; export declare function readAnnotationBodyResource(x: any, context?: any): AnnotationBodyResource; export declare function writeAnnotationBodySpecificResource(x: AnnotationBodySpecificResource, context?: any): any; export declare function readAnnotationBodySpecificResource(x: any, context?: any): AnnotationBodySpecificResource; export declare function writeAnnotationBodyTextualBody(x: AnnotationBodyTextualBody, context?: any): any; export declare function readAnnotationBodyTextualBody(x: any, context?: any): AnnotationBodyTextualBody; export declare function writeAnnotationBodyFeature(x: AnnotationBodyFeature, context?: any): any; export declare function readAnnotationBodyFeature(x: any, context?: any): AnnotationBodyFeature; export declare function writeAnnotationBodyFeatureCollection(x: AnnotationBodyFeatureCollection, context?: any): any; export declare function readAnnotationBodyFeatureCollection(x: any, context?: any): AnnotationBodyFeatureCollection; export declare function writeAnnotationBodyChoice(x: AnnotationBodyChoice, context?: any): any; export declare function readAnnotationBodyChoice(x: any, context?: any): AnnotationBodyChoice; export declare function _writeTargetT(x: TargetT, context?: any): any; export declare function _readTargetT(x: any, context?: any): TargetT; export declare function _writeAnnotationTargetT(x: AnnotationTargetT, context?: any): any; export declare function _readAnnotationTargetT(x: any, context?: any): AnnotationTargetT; export declare function writeAnnotationTargetString(x: AnnotationTargetString, context?: any): any; export declare function readAnnotationTargetString(x: any, context?: any): AnnotationTargetString; export declare function writeAnnotationTargetSelectorTarget(x: AnnotationTargetSelectorTarget, context?: any): any; export declare function readAnnotationTargetSelectorTarget(x: any, context?: any): AnnotationTargetSelectorTarget; export declare function writeAnnotationTargetSpecificResource(x: AnnotationTargetSpecificResource, context?: any): any; export declare function readAnnotationTargetSpecificResource(x: any, context?: any): AnnotationTargetSpecificResource; export declare function writeAnnotationTargetCanvasRef(x: AnnotationTargetCanvasRef, context?: any): any; export declare function readAnnotationTargetCanvasRef(x: any, context?: any): AnnotationTargetCanvasRef; export declare function writeSpecificResourceT(x: SpecificResourceT, context?: any): any; export declare function readSpecificResourceT(x: any, context?: any): SpecificResourceT; export declare function _writeSourceT(x: SourceT, context?: any): any; export declare function _readSourceT(x: any, context?: any): SourceT; export declare function writeSourceRef(x: SourceRef, context?: any): any; export declare function readSourceRef(x: any, context?: any): SourceRef; export declare function writeSourceObject(x: SourceObject, context?: any): any; export declare function readSourceObject(x: any, context?: any): SourceObject; export declare function _writeSelectorT(x: SelectorT, context?: any): any; export declare function _readSelectorT(x: any, context?: any): SelectorT; export declare function _writeResourceSelectorT(x: ResourceSelectorT, context?: any): any; export declare function _readResourceSelectorT(x: any, context?: any): ResourceSelectorT; export declare function writeResourceSelectorString(x: ResourceSelectorString, context?: any): any; export declare function readResourceSelectorString(x: any, context?: any): ResourceSelectorString; export declare function writeResourceSelectorPoint(x: ResourceSelectorPoint, context?: any): any; export declare function readResourceSelectorPoint(x: any, context?: any): ResourceSelectorPoint; export declare function writeResourceSelectorFragment(x: ResourceSelectorFragment, context?: any): any; export declare function readResourceSelectorFragment(x: any, context?: any): ResourceSelectorFragment; export declare function writeConformsToT(x: ConformsToT, context?: any): any; export declare function readConformsToT(x: any, context?: any): ConformsToT; export declare function writeResourceSelectorSvg(x: ResourceSelectorSvg, context?: any): any; export declare function readResourceSelectorSvg(x: any, context?: any): ResourceSelectorSvg; export declare function writeResourceSelectorImageApi(x: ResourceSelectorImageApi, context?: any): any; export declare function readResourceSelectorImageApi(x: any, context?: any): ResourceSelectorImageApi; export declare function writeResourceSelectorTextQuote(x: ResourceSelectorTextQuote, context?: any): any; export declare function readResourceSelectorTextQuote(x: any, context?: any): ResourceSelectorTextQuote; export declare function writeResourceSelectorXpath(x: ResourceSelectorXpath, context?: any): any; export declare function readResourceSelectorXpath(x: any, context?: any): ResourceSelectorXpath; export declare function writeMetadataT(x: MetadataT, context?: any): any; export declare function readMetadataT(x: any, context?: any): MetadataT; export declare function writeRequiredStatementT(x: RequiredStatementT, context?: any): any; export declare function readRequiredStatementT(x: any, context?: any): RequiredStatementT; export declare function writeThumbnailT(x: ThumbnailT, context?: any): any; export declare function readThumbnailT(x: any, context?: any): ThumbnailT; export declare function writeLogoT(x: LogoT, context?: any): any; export declare function readLogoT(x: any, context?: any): LogoT; export declare function writeResourceT(x: ResourceT, context?: any): any; export declare function readResourceT(x: any, context?: any): ResourceT; export declare function _writeServiceT(x: ServiceT, context?: any): any; export declare function _readServiceT(x: any, context?: any): ServiceT; export declare function _writeServiceItemT(x: ServiceItemT, context?: any): any; export declare function _readServiceItemT(x: any, context?: any): ServiceItemT; export declare function writeServiceItemModern(x: ServiceItemModern, context?: any): any; export declare function readServiceItemModern(x: any, context?: any): ServiceItemModern; export declare function writeServiceItemLegacy(x: ServiceItemLegacy, context?: any): any; export declare function readServiceItemLegacy(x: any, context?: any): ServiceItemLegacy; export declare function _writeLabelT(x: LabelT, context?: any): any; export declare function _readLabelT(x: any, context?: any): LabelT; export declare function writeLabelPlain(x: LabelPlain, context?: any): any; export declare function readLabelPlain(x: any, context?: any): LabelPlain; export declare function writeLabelMultilingual(x: LabelMultilingual, context?: any): any; export declare function readLabelMultilingual(x: any, context?: any): LabelMultilingual; export declare function writeSummaryT(x: SummaryT, context?: any): any; export declare function readSummaryT(x: any, context?: any): SummaryT; export declare function writeLngStringT(x: LngStringT, context?: any): any; export declare function readLngStringT(x: any, context?: any): LngStringT; export declare function _writeLanguageT(x: LanguageT, context?: any): any; export declare function _readLanguageT(x: any, context?: any): LanguageT; export declare function writeLanguageValue(x: LanguageValue, context?: any): any; export declare function readLanguageValue(x: any, context?: any): LanguageValue; export declare function writeLanguageArray(x: LanguageArray, context?: any): any; export declare function readLanguageArray(x: any, context?: any): LanguageArray; export declare function writeExternalT(x: ExternalT, context?: any): any; export declare function readExternalT(x: any, context?: any): ExternalT; export declare function writeSeeAlsoT(x: SeeAlsoT, context?: any): any; export declare function readSeeAlsoT(x: any, context?: any): SeeAlsoT; export declare function writeRenderingT(x: RenderingT, context?: any): any; export declare function readRenderingT(x: any, context?: any): RenderingT; export declare function writeHomepageT(x: HomepageT, context?: any): any; export declare function readHomepageT(x: any, context?: any): HomepageT; export declare function writeProviderT(x: ProviderT, context?: any): any; export declare function readProviderT(x: any, context?: any): ProviderT; export declare function _writePartOfT(x: PartOfT, context?: any): any; export declare function _readPartOfT(x: any, context?: any): PartOfT; export declare function writePartOfRef(x: PartOfRef, context?: any): any; export declare function readPartOfRef(x: any, context?: any): PartOfRef; export declare function writePartOfObject(x: PartOfObject, context?: any): any; export declare function readPartOfObject(x: any, context?: any): PartOfObject; export declare function writeStartT(x: StartT, context?: any): any; export declare function readStartT(x: any, context?: any): StartT; export declare function _writeMotivationT(x: MotivationT, context?: any): any; export declare function _readMotivationT(x: any, context?: any): MotivationT; export declare function writeMotivationValue(x: MotivationValue, context?: any): any; export declare function readMotivationValue(x: any, context?: any): MotivationValue; export declare function writeMotivationArray(x: MotivationArray, context?: any): any; export declare function readMotivationArray(x: any, context?: any): MotivationArray; export declare function writeAnnotationCollectionT(x: AnnotationCollectionT, context?: any): any; export declare function readAnnotationCollectionT(x: any, context?: any): AnnotationCollectionT; export declare function _writeFirstT(x: FirstT, context?: any): any; export declare function _readFirstT(x: any, context?: any): FirstT; export declare function writeFirstRef(x: FirstRef, context?: any): any; export declare function readFirstRef(x: any, context?: any): FirstRef; export declare function writeFirstObject(x: FirstObject, context?: any): any; export declare function readFirstObject(x: any, context?: any): FirstObject; export declare function writeRangeT(x: RangeT, context?: any): any; export declare function readRangeT(x: any, context?: any): RangeT; export declare function _writeRangeItemsT(x: RangeItemsT, context?: any): any; export declare function _readRangeItemsT(x: any, context?: any): RangeItemsT; export declare function writeStringsT(x: StringsT, context?: any): any; export declare function readStringsT(x: any, context?: any): StringsT; export declare function writeIdT(x: IdT, context?: any): any; export declare function readIdT(x: any, context?: any): IdT; export declare function writeTypeT(x: TypeT, context?: any): any; export declare function readTypeT(x: any, context?: any): TypeT; export declare function writeHeightT(x: HeightT, context?: any): any; export declare function readHeightT(x: any, context?: any): HeightT; export declare function writeWidthT(x: WidthT, context?: any): any; export declare function readWidthT(x: any, context?: any): WidthT; export declare function writeDurationT(x: DurationT, context?: any): any; export declare function readDurationT(x: any, context?: any): DurationT; export declare function writeCreatedT(x: CreatedT, context?: any): any; export declare function readCreatedT(x: any, context?: any): CreatedT; export declare function writeModifiedT(x: ModifiedT, context?: any): any; export declare function readModifiedT(x: any, context?: any): ModifiedT; export declare function writeFormatT(x: FormatT, context?: any): any; export declare function readFormatT(x: any, context?: any): FormatT; export declare function writeProfileT(x: ProfileT, context?: any): any; export declare function readProfileT(x: any, context?: any): ProfileT; export declare function writeViewingDirectionT(x: ViewingDirectionT, context?: any): any; export declare function readViewingDirectionT(x: any, context?: any): ViewingDirectionT; export declare function writeBehaviorT(x: BehaviorT, context?: any): any; export declare function readBehaviorT(x: any, context?: any): BehaviorT; export declare function writeNavDateT(x: NavDateT, context?: any): any; export declare function readNavDateT(x: any, context?: any): NavDateT; export declare function writeRightsT(x: RightsT, context?: any): any; export declare function readRightsT(x: any, context?: any): RightsT; export declare function writeValueT(x: ValueT, context?: any): any; export declare function readValueT(x: any, context?: any): ValueT; export declare function writeAccessibilityT(x: AccessibilityT, context?: any): any; export declare function readAccessibilityT(x: any, context?: any): AccessibilityT; export declare function writeDimensionT(x: DimensionT, context?: any): any; export declare function readDimensionT(x: any, context?: any): DimensionT; export declare function writePatternT(x: PatternT, context?: any): any; export declare function readPatternT(x: any, context?: any): PatternT; export declare function writeDefaultT(x: DefaultT, context?: any): any; export declare function readDefaultT(x: any, context?: any): DefaultT; export declare function writeRegionT(x: RegionT, context?: any): any; export declare function readRegionT(x: any, context?: any): RegionT; export declare function writeSizeT(x: SizeT, context?: any): any; export declare function readSizeT(x: any, context?: any): SizeT; export declare function writeQualityT(x: QualityT, context?: any): any; export declare function readQualityT(x: any, context?: any): QualityT; export declare function writeRotationT(x: RotationT, context?: any): any; export declare function readRotationT(x: any, context?: any): RotationT; export declare function writeTotalT(x: TotalT, context?: any): any; export declare function readTotalT(x: any, context?: any): TotalT; export declare function writeLastT(x: LastT, context?: any): any; export declare function readLastT(x: any, context?: any): LastT; export declare function writeNextT(x: NextT, context?: any): any; export declare function readNextT(x: any, context?: any): NextT; export declare function writeStartIndexT(x: StartIndexT, context?: any): any; export declare function readStartIndexT(x: any, context?: any): StartIndexT; export declare function writeNameT(x: NameT, context?: any): any; export declare function readNameT(x: any, context?: any): NameT; export declare function writeNicknameT(x: NicknameT, context?: any): any; export declare function readNicknameT(x: any, context?: any): NicknameT; export declare function writePrefixT(x: PrefixT, context?: any): any; export declare function readPrefixT(x: any, context?: any): PrefixT; export declare function writeExactT(x: ExactT, context?: any): any; export declare function readExactT(x: any, context?: any): ExactT; export declare function writeSuffixT(x: SuffixT, context?: any): any; export declare function readSuffixT(x: any, context?: any): SuffixT; export declare type Option<T> = null | { value: T; }; export declare function writeAnnotationBodyT(x: any, context?: any): AnnotationBodyT; export declare function readAnnotationBodyT(x: any, context?: any): AnnotationBodyT; export declare function writeAnnotationBodyItemsT(x: any, context?: any): AnnotationBodyItemsT; export declare function readAnnotationBodyItemsT(x: any, context?: any): AnnotationBodyItemsT; export declare function writeAnnotationTargetT(x: any, context?: any): AnnotationTargetT; export declare function readAnnotationTargetT(x: any, context?: any): AnnotationTargetT; export declare function writeBodyT(x: any, context?: any): BodyT; export declare function readBodyT(x: any, context?: any): BodyT; export declare function writeContextT(x: any, context?: any): ContextT; export declare function readContextT(x: any, context?: any): ContextT; export declare function writeCreatorT(x: any, context?: any): CreatorT; export declare function readCreatorT(x: any, context?: any): CreatorT; export declare function writeCreatorItemT(x: any, context?: any): CreatorItemT; export declare function readCreatorItemT(x: any, context?: any): CreatorItemT; export declare function writeEmailSha1StringsT(x: any, context?: any): EmailSha1StringsT; export declare function readEmailSha1StringsT(x: any, context?: any): EmailSha1StringsT; export declare function writeEmailStringsT(x: any, context?: any): EmailStringsT; export declare function readEmailStringsT(x: any, context?: any): EmailStringsT; export declare function writeFirstT(x: any, context?: any): FirstT; export declare function readFirstT(x: any, context?: any): FirstT; export declare function writeGeneratorT(x: any, context?: any): GeneratorT; export declare function readGeneratorT(x: any, context?: any): GeneratorT; export declare function writeGeneratorItemT(x: any, context?: any): GeneratorItemT; export declare function readGeneratorItemT(x: any, context?: any): GeneratorItemT; export declare function writeGeometryT(x: any, context?: any): GeometryT; export declare function readGeometryT(x: any, context?: any): GeometryT; export declare function writeHomepageStringsT(x: any, context?: any): HomepageStringsT; export declare function readHomepageStringsT(x: any, context?: any): HomepageStringsT; export declare function writeLabelT(x: any, context?: any): LabelT; export declare function readLabelT(x: any, context?: any): LabelT; export declare function writeLanguageT(x: any, context?: any): LanguageT; export declare function readLanguageT(x: any, context?: any): LanguageT; export declare function writeMotivationT(x: any, context?: any): MotivationT; export declare function readMotivationT(x: any, context?: any): MotivationT; export declare function writePartOfT(x: any, context?: any): PartOfT; export declare function readPartOfT(x: any, context?: any): PartOfT; export declare function writeRangeItemsT(x: any, context?: any): RangeItemsT; export declare function readRangeItemsT(x: any, context?: any): RangeItemsT; export declare function writeResourceSelectorT(x: any, context?: any): ResourceSelectorT; export declare function readResourceSelectorT(x: any, context?: any): ResourceSelectorT; export declare function writeSelectorT(x: any, context?: any): SelectorT; export declare function readSelectorT(x: any, context?: any): SelectorT; export declare function writeServiceT(x: any, context?: any): ServiceT; export declare function readServiceT(x: any, context?: any): ServiceT; export declare function writeServiceItemT(x: any, context?: any): ServiceItemT; export declare function readServiceItemT(x: any, context?: any): ServiceItemT; export declare function writeSourceT(x: any, context?: any): SourceT; export declare function readSourceT(x: any, context?: any): SourceT; export declare function writeSpecificationT(x: any, context?: any): SpecificationT; export declare function readSpecificationT(x: any, context?: any): SpecificationT; export declare function writeTargetT(x: any, context?: any): TargetT; export declare function readTargetT(x: any, context?: any): TargetT;