exiftool-vendored
Version:
Efficient, cross-platform access to ExifTool
33 lines (32 loc) • 1.07 kB
TypeScript
import { StrEnum, StrEnumKeys } from "./StrEnum";
export interface KeywordInfoStruct {
Hierarchy?: KeywordStruct[];
}
export interface KeywordStruct {
Children?: KeywordStruct[];
Keyword: string;
}
/**
* Note: this is a partial interface: ExifTool extracts more fields from this
* group type (but I haven't seen those in the wild).
*
* @see https://exiftool.org/TagNames/MWG.html#Keywords
*/
export interface MWGKeywordTags {
KeywordInfo?: KeywordInfoStruct[];
HierarchicalKeywords?: KeywordStruct[];
}
export interface CollectionInfo {
CollectionName: string;
CollectionURI: string;
}
/**
* @see https://exiftool.org/TagNames/MWG.html#Collections
*/
export interface MWGCollectionsTags {
Collections?: CollectionInfo[];
}
export declare const MWGKeywordTagNames: StrEnum<"KeywordInfo" | "HierarchicalKeywords">;
export type MWGKeywordTagName = StrEnumKeys<typeof MWGKeywordTagNames>;
export declare const MWGCollectionsTagNames: StrEnum<"Collections">;
export type MWGCollectionsTagName = StrEnumKeys<typeof MWGCollectionsTagNames>;