# types.ServerSnapshot

- **Module:** types
- **Package:** @libtmux/libtmux
- **Language:** TypeScript
- **Kind:** interface
- **Source:** https://github.com/libtmux/libtmux-ts/blob/2cb93308200da38a26b59876618116850f110607/packages/libtmux/src/types.ts#L43
- **Page:** https://libtmux.org/reference/ts/types-serversnapshot/

An immutable view of the server at one instant.

`windows` and `panes` hold placements rather than distinct objects. A window
linked into two sessions, or shared by two grouped sessions, is one window
that appears once per session — so these count places a thing is, and an id
matches every placement of it. Narrow with the session to reach one:

## Example

```ts
snapshot.panes.one({ id: "%1", session: { is: { name: "work" } } });
```

## Members

- `clients` (property)
- `panes` (property)
- `sessions` (property)
- `windows` (property)
