import type { FC, ReactNode } from 'react'; export interface UserPanelElement { key: string; label: string; onClick: () => void; } export interface C3UserPanelProps { /** User's display name. */ name?: string; /** User's email address. */ email?: string; /** App version string shown at the bottom of the panel. */ version?: string; /** Called when the user clicks "Log out". Omit to hide the button. */ onLogout?: () => void; /** Internal toggle for production features (development use). */ stageToggle?: { prodFeaturesEnabled: boolean; toggle: () => void; }; /** Arbitrary content rendered between the profile section and the link list. */ customSection?: ReactNode; /** * Additional link elements rendered above the built-in legal links * (Terms of use, Privacy policy, Imprint). Elements whose `key` matches * a built-in link (`terms`, `privacy`, `imprint`) replace the default. */ elements?: UserPanelElement[]; /** Defaults to `'Account'`. */ title?: string | null; labels?: C3UserPanelLabels; } export interface C3UserPanelLabels { /** Defaults to `'Terms of use'`. */ termsOfUse?: string; /** Defaults to `'Privacy policy'`. */ privacyPolicy?: string; /** Defaults to `'Imprint'`. */ imprint?: string; /** Defaults to `'Log out'`. */ logOut?: string; /** Footer copyright. Defaults to `'© Camunda Services GmbH {year}'`. Receives the current year. */ copyright?: (year: number) => string; } export declare const C3UserPanel: FC;