import { DoEntity, HybridActionEvent, HybridManager, Session, Widget } from '../index';
import 'jasmine-ajax';
/**
 * Utility functions for jasmine tests.
 */
export declare const JasmineScoutUtil: {
    /**
     * @returns the loaded JSON data structure
     */
    loadJsonResource(jsonResourceUrl: string, options?: {
        useCache?: boolean;
    }): JQuery.Promise<any>;
    loadJsonResourceAndMockRestCall(resourceUrlToMock: string, jsonResourceUrl: string, options?: {
        useCache?: boolean;
        restriction?: any;
        method?: string;
    }): void;
    mockRestLookupCall(resourceUrlToMock: string, lookupRows: any[], parentRestriction?: any): void;
    mockRestCall(resourceUrlToMock: string, responseData: any, options?: {
        restriction?: any;
        method?: string;
    }): void;
    /**
     * If an ajax call is not mocked, this fallback will be triggered to show information about which url is not mocked.
     */
    captureNotMockedCalls(): void;
    /**
     * Calls the given mock as soon as a hybrid action with the given actionType is called.
     * The mock is called asynchronously using setTimeout to let the runtime code add any required event listeners first.
     *
     * The mock may return an object with [id, widget] if the action is supposed to create widgets.
     * The format of the id depends on the method used to add widgets:
     * - `AbstractHybridAction.addWidget(IWidget)` (e.g. `AbstractFormHybridAction`): `${widgetId}`
     * - `AbstractHybridAction.addWidgets(Map<String, IWidget>)`: `${actionId}${widgetId}`
     */
    mockHybridAction<TData extends DoEntity>(session: Session, actionType: string, mock: (event: HybridActionEvent<TData, HybridManager>) => Record<string, Widget>): void;
};
//# sourceMappingURL=JasmineScoutUtil.d.ts.map