import { Response } from "./Response"; export interface InlineOptions { /** * Called before the data is fetched. */ onLoad?: (sender?: HTMLElement) => void; /** * Called before the fetched HTML is rendered to the list. Must return the data back to datalist to render. */ onRender?: (html: string, sender?: HTMLElement) => string; /** * Called when loading and rendering is complete. */ onComplete?: (html: string, sender?: HTMLElement) => void; /** * Called when an error occurs. */ onError?: (jqXHR: any, textStatus: any, errorThrown: any) => void; } export declare class Inline { static load(tag: HTMLElement, options: InlineOptions): void; static task(url: string, sender: HTMLElement, complete?: (data: Response, sender?: HTMLElement) => void, error?: (jqXHR: any, textStatus: any, errorThrown: any) => void): void; static post(url: string, sender: HTMLElement, complete?: (data: Response, sender?: HTMLElement) => void, error?: (jqXHR: any, textStatus: any, errorThrown: any) => void): void; static handleError(xhr: { status: string | number; }, textStatus: any, errorThrown: any): void; }