masto
Version:
Mastodon API client for JavaScript, TypeScript, Node.js, browsers
11 lines (10 loc) • 543 B
TypeScript
import { type ActionDispatcherHook, type AnyAction, type Http } from "../../interfaces/index.js";
import { type HttpAction } from "./dispatcher-http.js";
export declare class HttpActionDispatcherHookMastodon implements ActionDispatcherHook<AnyAction> {
private readonly http;
private readonly mediaTimeout;
constructor(http: Http, mediaTimeout?: number);
beforeDispatch(action: AnyAction): HttpAction;
dispatch(action: AnyAction): false | Promise<unknown>;
afterDispatch(action: AnyAction, result: unknown): unknown;
}