---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/tools/searxng/type-aliases/SearxngOutputMiddlewareFn.md
description: >-
  An output-pipeline stage. Onion middleware over {@link
  SearxngResponseContext}.
---

# Type Alias: SearxngOutputMiddlewareFn

```ts
type SearxngOutputMiddlewareFn = (
  ctx: SearxngResponseContext,
  next: NextFn,
) => void | Promise<void>;
```

Defined in: [batteries/tools/searxng/index.ts:118](https://github.com/NHTIO/ADK/blob/v1.20260609.0/src/batteries/tools/searxng/index.ts#L118)

An output-pipeline stage. Onion middleware over [SearxngResponseContext](../interfaces/SearxngResponseContext.md).

## Parameters

| Parameter | Type                                                                |
| --------- | ------------------------------------------------------------------- |
| `ctx`     | [`SearxngResponseContext`](../interfaces/SearxngResponseContext.md) |
| `next`    | `NextFn`                                                            |

## Returns

`void` | `Promise`<`void`>
