export { AgentStreamEvent, AppendUserMessageOptions, ApplySdkEventOptions, AutomationStreamEvent, BeginAssistantMessageOptions, BotStreamEvent, CompleteAssistantMessageOptions, ConnectionState, RealtimeSessionOptions, RealtimeSessionRegistry, RealtimeSessionRegistryProps, RealtimeSessionState, RealtimeSessionTarget, SSEEvent, SdkSessionAttachment, SdkSessionEvent, SdkSessionSeed, TaskStreamEvent, TerminalStreamEvent, UseRunGroupsOptions, UseSSEStreamOptions, UseSSEStreamResult, UseSdkSessionOptions, UseSdkSessionReturn, UseToolCallStreamReturn, useAutoScroll, useDropdownMenu, useRealtimeSession, useRunCollapseState, useRunGroups, useSSEStream, useSdkSession, useToolCallStream } from './sdk-hooks.js'; import 'react'; import './run-PfLmDAox.js'; import './message-BHWbxBtT.js'; import './parts-dj7AcUg0.js'; import './active-sessions-store-CeOmXgv5.js'; import 'nanostores'; import './tool-call-feed-D9iofJgW.js'; import 'react/jsx-runtime'; /** * Returns `Date.now()` and re-renders every `intervalMs` so derived * values like "uptime" tick forward without polling upstream data. */ declare function useLiveTime(intervalMs?: number): number; interface AuthUser { customer_id: string; email: string; name?: string; tier: string; github?: { login: string; connected: boolean; } | null; session_expires_at?: string; } interface UseAuthOptions { apiBaseUrl: string; revalidateOnFocus?: boolean; shouldRetryOnError?: boolean; } interface UseAuthResult { user: AuthUser | null; isLoading: boolean; isError: boolean; error: Error | null; mutate: () => Promise; } /** * Hook for managing authentication state. * Fetches user session from the API and provides loading/error states. */ declare function useAuth({ apiBaseUrl, revalidateOnFocus, shouldRetryOnError, }: UseAuthOptions): UseAuthResult; /** * Creates a fetcher function that includes auth credentials. * Uses both cookie-based session and localStorage API key for backwards compatibility. */ declare function createAuthFetcher(_apiBaseUrl: string): (url: string, options?: RequestInit) => Promise; /** * Hook to get the API key from localStorage. * For backwards compatibility with API key-based auth. */ declare function useApiKey(): string | null; export { type AuthUser, type UseAuthOptions, type UseAuthResult, createAuthFetcher, useApiKey, useAuth, useLiveTime };