/**
 * @file
 * Drupal Bridge Component
 *
 * Provides integration between React components and Drupal's
 * server-side rendering and configuration system.
 */
import { type ReactNode } from 'react';
export interface DrupalSettings {
    path?: {
        baseUrl?: string;
        currentPath?: string;
    };
    user?: {
        uid?: string;
        name?: string;
        roles?: string[];
    };
    llmUi?: {
        apiEndpoint?: string;
        csrfToken?: string;
        theme?: string;
        [key: string]: any;
    };
}
export interface DrupalBridgeProps {
    children: ReactNode;
    settings: DrupalSettings;
}
/**
 * Drupal Bridge Provider Component
 *
 * Wraps React components with Drupal-specific context and configuration.
 * This allows components to access Drupal settings, user information,
 * and API endpoints seamlessly.
 */
export declare function DrupalBridge({ children, settings }: DrupalBridgeProps): JSX.Element;
/**
 * Hook to access Drupal settings from React components
 */
export declare function useDrupalSettings(): DrupalSettings;
/**
 * Hook to get API configuration for Drupal integration
 */
export declare function useDrupalApi(): {
    baseUrl: string;
    apiEndpoint: string;
    csrfToken: string;
    headers: {
        'Content-Type': string;
        'X-CSRF-Token': string;
    };
};
/**
 * Hook to access current Drupal user information
 */
export declare function useDrupalUser(): {
    uid: string;
    name: string;
    roles: string[];
    isAuthenticated: boolean;
    hasRole: (role: string) => boolean;
};
//# sourceMappingURL=DrupalBridge.d.ts.map