export type CategoryImage = { url: string; alt?: string; }; export type Category = { id: string; name: string; slug: string; path: string; isEmpty?: boolean; images?: CategoryImage[]; depth?: number; children?: string[]; parentId?: string; }; export type Brand = { name: string; entityId: string; path: string; }; export type SearchSiteInfoBody = { locale?: string; }; export type SiteTypes = { category: Category; brand: Brand; searchBody: SearchSiteInfoBody; getCategoriesBody: GetCategoriesBody; }; export type GetSiteInfoOperation = { data: { categories: T["category"][]; brands: T["brand"][]; }; }; export type GetCategoriesBody = { addIsEmptyField?: boolean; categoryId?: string; }; export type GetCategoriesHook = { data: T["category"][]; input: T["getCategoriesBody"]; fetcherInput: T["getCategoriesBody"]; swrState: { isEmpty: boolean; }; }; export type GetBrandsHook = { data: T["brand"][] | null; input: {}; fetcherInput: {}; swrState: { isEmpty: boolean; }; };