# UseTour

What [`useTour`](https://docs.mapcairn.com/api/map/useTour-function.md) returns.

This is an interface exported by `@mapcairn/map`, checked against version 0.2.0.

## Signature

```ts
import type { UseTour } from "@mapcairn/map";
 
interface UseTour
```

## Properties

### focusRequest

```ts
readonly focusRequest: number;
```

Grows each time the card's heading should take focus.

### state

```ts
readonly state: TourState;
```

Where the tour is: `off`, `welcome`, `running` or `ended`.

### step

```ts
readonly step: TourStep | null;
```

The current step while running, else null.

### steps

```ts
readonly steps: readonly TourStep[];
```

The tour's steps, as the host gave them.

## Methods

### close

```ts
close(): void;
```

Closes the ending card.

### next

```ts
next(): void;
```

Goes to the next step, or to the ending after the last.

### skip

```ts
skip(): void;
```

Ends the tour from the welcome card or any step.

### start

```ts
start(): void;
```

Starts at the first step, from the welcome card or from Help.

## See also

- [`TourState`](https://docs.mapcairn.com/api/core/TourState.md)
- [`TourStep`](https://docs.mapcairn.com/api/map/TourStep.md)

Source: [packages/map/src/tools/Tour/useTour.ts:49](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/tools/Tour/useTour.ts#L49)
