UNPKG

@jorsek/ezd-client

Version:
20 lines (19 loc) 611 B
import Client, { IClientArgs } from "./Client"; import { IFacetValue, IPageContent, ISearchResponse, ISection } from "./Types"; export interface IHomePageProps { sections: ISection[]; metadata: Record<string, any>; groups: Record<string, ISection>; } export declare type IContentPageProps = IPageContent; export interface ISearchPageProps { sections: ISection[]; loading: boolean; facets: Record<string, IFacetValue[]>; response: ISearchResponse; } export declare class Core { client: Client; constructor(args: IClientArgs); getHomePageData(): Promise<IHomePageProps>; }