## Lifecycle Hooks

### `preparation`

Called before the opening/closing process begins. Used for preparing elements and data.

**Type:** `() => void | Promise<void>`

### `beforeOpening`

Called before opening the window. Returning `false` cancels opening.

**Type:** `() => boolean | Promise<boolean>`

### `beforeClosing`

Called before closing the window. Returning `false` cancels closing.

**Type:** `() => boolean | Promise<boolean>`

### `opening`

Called after the window finishes opening (after animation).

**Type:** `() => boolean | Promise<boolean>`

### `closing`

Called after the window finishes closing (after animation).

**Type:** `() => boolean | Promise<boolean>`
