import type { Dispatch, MiddlewareAPI } from 'redux'; import type { TSdkAction } from "../types.js"; export default function createSdkMiddleware({ getCorrelationId, getProjectKey, getAdditionalHeaders, }: { getCorrelationId: () => string; getProjectKey: () => string | undefined; getAdditionalHeaders: () => { [key: string]: string; } | undefined; }): ({ dispatch }: MiddlewareAPI) => (next: Dispatch) => (action: TSdkAction) => Promise;