import type { EventHub } from '../common'; import { FrankieApiClient } from './FrankieApiClient'; import type { SessionMeta } from '../session/SessionContext'; import type { AxiosRequestConfig, AxiosResponse } from 'axios'; export declare const URL_PARAM = "([^/?]+)"; export declare const QUERY_PARAM = "([^&?]+)"; export declare const dummySessionMeta: SessionMeta; export declare class DummyFrankieApiClient extends FrankieApiClient { protected o: { globalEventHub?: EventHub; defaultDelay?: number; }; protected requestPayloadDictionary: StubResponseDictionary; protected globalEventHub?: EventHub; constructor(o?: { globalEventHub?: EventHub; defaultDelay?: number; }); stubResponse(options: { url: string | RegExp; method?: TheMethod; }, responsePayload?: StubResponseDictionary[string][TheMethod]): void; findStub(url: URLPattern, method: TheMethod): FoundStub | null; getStubPayload(config: Partial): AxiosResponse & { delay?: number; }; preventUncaughtErrors(url: string, config: AxiosRequestConfig | undefined, method: Method, data?: unknown): Promise>; get(url: string, config?: AxiosRequestConfig | undefined): Promise>; delete(url: string, config?: AxiosRequestConfig | undefined): Promise>; post(url: string, data?: unknown, config?: AxiosRequestConfig | undefined): Promise>; put(url: string, data?: unknown, config?: AxiosRequestConfig | undefined): Promise>; redirect(url: URL): void; private delayResponse; } type Method = 'get' | 'put' | 'post' | 'delete'; type URLPattern = string; export type StubResponse = Partial; type StubResponseDictionary = Record>; type MethodStubDictionary = Record | StubFactory> & { redirect: RedirectStub; }; type StubFactoryParameter = Partial & { urlMatch?: RegExpExecArray | string | null; }; export type StubFactory = (options: StubFactoryParameter) => StubResponse; type FoundStub = { stub: StubResponseDictionary[string][TheMethod]; urlMatch?: RegExpExecArray | string | null; }; type RedirectStub = (url: URL) => URL | null; export {}; //# sourceMappingURL=DummyFrankieApiClient.d.ts.map