Skip to content

API Reference

Complete API documentation for rts-common hooks, utilities, and types.

Hooks

Authentication

  • useAuth - Access authentication state and methods
  • useApiClient - Create authenticated API client

UI

Utilities

Styling

Constants

Context Providers

Type Definitions

View all TypeScript types and interfaces.

Component APIs

For component-specific API documentation, see the Component Index.

Quick Reference

Common Imports

typescript
// Hooks
import { useAuth } from '@devdenvino/rts-common/hooks/use-auth';
import { useApiClient } from '@devdenvino/rts-common';

// Utilities
import { cn } from '@devdenvino/rts-common';

// Components
import { Button, Card } from '@devdenvino/rts-common/components/ui';

// Icons
import { Home } from '@devdenvino/rts-common/lucide-react';

// Types
import type { AppConfig, NavMenu } from '@devdenvino/rts-common';

Next Steps

Released under the MIT License.