> ## Documentation Index
> Fetch the complete documentation index at: https://developer.suki.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# UseAmbientSessionReturn Type

> Return type for useAmbientSession hook

## Type definition

Below is the type definition for the `UseAmbientSessionReturn` type. This is the type definition for what the `useAmbientSession` hook returns. It includes methods to control the session and state information about the current session.

```tsx theme={"theme":{"light":"github-dark","dark":"material-theme-darker"}}
type UseAmbientSessionReturn = {
  start: () => Promise<void>;
  pause: () => Promise<void>;
  resume: () => Promise<void>;
  cancel: () => Promise<void>;
  submit: () => Promise<void>;
  setSessionContext: (sessionContext: SessionContext) => Promise<SessionContextResponse>;
  sessionStatus: AmbientSessionStatus;
  isFetching: boolean;
  refetch: () => Promise<AmbientSession>;
};
```
