import { ModelProps } from '../types/AEMModel'; type RequireAtLeastOne = { [K in keyof T]-?: Required> & Partial>>; }[keyof T]; export interface Path { cqPath: string; pagePath: string; } export type FetchProps = RequireAtLeastOne & { forceReload?: boolean; host?: string; options?: { headers?: HeadersInit; }; itemPath?: string; }; /** * Fetch the model for a given path from AEM * * @param {Object} options * @param options.cqPath Complete path to component on AEM * @param options.pagePath Path to page containing the desired component * @param options.itemPath Path to item within the page defined by pagePath * @param options.host Host information of the AEM instance if fetch is to be done prior to ModelManager init * @param options.options Fetch request options is fetching model using host * @returns The fetched model transformed into usable props */ export declare function fetchModel({ cqPath, forceReload, pagePath, itemPath, host, options, }: FetchProps): Promise; export {};