import type { fetch } from 'undici-types'; import type { MetaCopyright, DistManifest, MetaRestrictions, DistManifestItem } from './shared_types'; declare global { interface GlobalFetch { fetch: typeof fetch; } } export interface UsageConfig { commercial: boolean; attributionless: boolean; limitless: boolean; derivatives: boolean | 'same-license'; } export type UsageOptions = Partial; export interface RuntimeLicense { id: string | null; name: string; restrictions: MetaRestrictions; url: string; } export type RuntimeCopyright = Omit & { licenses: RuntimeLicense[]; }; export type RuntimeManifestItem = Omit & { copyright: RuntimeCopyright; books_ot_list: string[]; books_nt_list: string[]; endpoint: string; }; export type RuntimeTranslation = RuntimeManifestItem; export type RuntimeGloss = RuntimeManifestItem; export type RuntimeNotes = RuntimeManifestItem; export type RuntimeManifest = Omit & { bibles: Record; glosses: Record; notes: Record; };