> ## Documentation Index
> Fetch the complete documentation index at: https://cognitio-agent.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Type Alias: HookData<Event>

> Generated from the public TypeScript API.

```ts theme={null}
type HookData<Event> = Event extends "PreCompact" ? PreCompactHookData : Event extends "PostCompact" ? PostCompactHookData : Record<string, unknown>;
```

Event-specific callback data: typed compaction payloads or the generic runtime event record.

## Type Parameters

### Event

`Event` *extends* [`HookEventName`](HookEventName)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.