import type { IArcGISContext } from "../../types/IArcGISContext";
import type { ILayout } from "../../layouts/types";
import type { LayoutNode } from "../../layouts/layout-system-types";
/**
 * Resolves a layout:// reference by fetching the layout (or node) from item data.
 * Example `$ref: "layout://item/:itemId/:nodeId"`
 * @param ref The layout reference to resolve.
 * @param context The ArcGIS context for making the request.
 * @returns The resolved layout or node, or undefined if not found.
 * @throws Error if the ref is invalid or the item cannot be fetched.
 */
export declare function fetchLayoutResolver(ref: string, context: IArcGISContext): Promise<ILayout | LayoutNode | undefined>;
