The API for client-side state management via cookies.