import type { Exception } from "@odg/exception"; import type { MessageResponse } from "../messages/MessageResponse"; import type { RequestInterface } from "./request"; export type onFulfilledType = (value: Data) => Data | Promise; export type onRejectedType = (error: Exception) => Promise | never; export interface MessageInterceptorOptions { synchronous?: boolean; } export interface InterceptorsInterface { request: InterceptorManager>; response: InterceptorManager>; } export interface InterceptorManager { use(onFulfilled?: onFulfilledType, onRejected?: onRejectedType, options?: MessageInterceptorOptions): number; eject(id: number): void; clear(): void; } export type DefaultMessageConstructor = Omit, "headers">; export interface MessageInterface { interceptors: InterceptorsInterface; request(config: RequestInterface): Promise>; getDefaultOptions(): Partial>; setDefaultOptions(config: Partial>): this; } //# sourceMappingURL=MessageInterface.d.ts.map