/** Response type from https://core.commercelayer.io/api/public/resources */ interface PublicResourcesResponse { data: Array<{ id: string; type: string; attributes: { fields: Record; relationships: Record; }; }>; } type FetchResourceResponse = Record; relationships: ReadonlyArray; }>; export declare const fetchResources: (waitCache?: boolean) => Promise; /** * * @returns */ export declare function fetchCoreResourcesSuggestions(mainResourceIds: Array<"order" | "price" | "price_list">, path: string): Promise>; export declare function atPath(path: string, obj?: FetchResourceResponse[string]): Promise<{ /** * The original path used to resolve the resource. * @example "order.market.code" */ path: string; /** * The field for the current path. Is undefined when the path is not pointing to a field. * @example "order.market.code" -> `code` is the field * @example "order.market" -> path will be undefined since `market` is a resource */ field?: FetchResourceResponse[string]["fields"][number][1]; /** * The path to the closest resource. * @example "order.market" */ resourcePath: string; /** * The closest resource for the current path. It can be undefined when the path is not pointing to a resource. */ resource?: FetchResourceResponse[string]; }>; export {};