import type { PFError, PFResultPromise } from '@ts-pf/protocol'; /** * Wraps `Link.call`. `[0]` is outermost. `next(opts)` **replaces** `input` and * `signal` for the rest of the chain (it does not merge); `path` cannot be * changed. Mirrors the server `CallInterceptor` (duplicated on purpose; the * two packages do not import each other). */ export type CallInterceptor = (ctx: { path: string[]; input: unknown; signal?: AbortSignal; next: (opts?: { input?: unknown; signal?: AbortSignal; }) => PFResultPromise; }) => PFResultPromise; export declare function runCallInterceptors(interceptors: readonly CallInterceptor[], path: string[], input: unknown, signal: AbortSignal | undefined, send: (input: unknown, signal: AbortSignal | undefined) => PFResultPromise): PFResultPromise; //# sourceMappingURL=call-interceptor.d.ts.map