> For the complete documentation index, see [llms.txt](/llms.txt).
> The full corpus is at [llms-full.txt](/llms-full.txt).

# BehaviorGuard

> **BehaviorGuard**\<`TBehaviorEvent`, `TGuardResponse`\> = (`payload`) => `TGuardResponse` \| `false`

Defined in: behavior.types.guard.ts:7

:::caution[Beta]
This API should not be used in production and may be trimmed from a public release.
:::

## Type Parameters

### TBehaviorEvent

`TBehaviorEvent`

### TGuardResponse

`TGuardResponse`

## Parameters

### payload

#### dom

`EditorDom`

#### event

`TBehaviorEvent`

#### snapshot

`EditorSnapshot`

## Returns

`TGuardResponse` \| `false`