import list from 'src/utils/fetchers/list'; // for full title type List = Awaited>; export type { List as default }; type DataTitle = { image: string | null; name: string; url: string | null; year: string; certificate: string; runtime: string; genre: string; plot: string; rating: string; metascore: string; otherInfo: string[][]; }; type DataName = { image: string | null; name: string; url: string | null; job: string | null; knownFor: string | null; knownForLink: string | null; about: string; }; type DataImage = string; export type DataKind = 'images' | 'titles' | 'names'; export type Data = T extends 'images' ? DataImage : T extends 'names' ? DataName : DataTitle;