/** * Lightweight HTTP utility for fetching server-rendered HTML fragments * and handling common concerns like CSRF tokens and response parsing. */ declare class DprHtmlClient { /** * Fetches an HTML fragment from the server and parses it into a DocumentFragment. * Returns null if the response indicates no content change (204). * * @static * @param {string} url * @param {string} [csrfToken] * @return {*} {(Promise)} * @memberof DprHtmlClient */ static fetchFragment(url: string, csrfToken?: string): Promise; /** * Extracts the CSRF token from a DOM element's dataset. * Throws an error if the token is not present. * * @static * @param {HTMLElement} element * @return {*} {string} * @memberof DprHtmlClient */ static getCsrfToken(element: HTMLElement): string; } export default DprHtmlClient;