import React, { SVGProps } from 'react'; type ComponentClass = { cssVarList: Record; }; type CountryCode = { name: string; dialCode: string; code: string; }; declare const IconClass: ComponentClass; declare const CheckboxClass: ComponentClass; declare const SwitchToggleClass: ComponentClass; declare const ButtonClass: ComponentClass; declare const LoaderLinearClass: ComponentClass; declare const LoaderRadialClass: ComponentClass; declare const ContainerClass: ComponentClass; declare const DividerClass: ComponentClass; declare const EmailFieldClass: ComponentClass; declare const LinkClass: ComponentClass; declare const LogoClass: ComponentClass; declare const TotpImageClass: ComponentClass; declare const NotpImageClass: ComponentClass; declare const NumberFieldClass: ComponentClass; declare const PasscodeClass: ComponentClass; declare const PasswordClass: ComponentClass; declare const TextClass: ComponentClass; declare const EnrichedTextClass: ComponentClass; declare const TextAreaClass: ComponentClass; declare const TextFieldClass: ComponentClass; declare const ImageClass: ComponentClass; declare const PhoneFieldClass: ComponentClass & { CountryCodes: CountryCode[]; }; declare const PhoneFieldInputBoxClass: ComponentClass; declare const NewPasswordClass: ComponentClass; declare const NewEmailClass: ComponentClass; declare const RecaptchaClass: ComponentClass; declare const UploadFileClass: ComponentClass; declare const ButtonSelectionGroupClass: ComponentClass; declare const ButtonMultiSelectionGroupClass: ComponentClass; declare const ModalClass: ComponentClass; declare const NotificationClass: ComponentClass; declare const GridClass: ComponentClass; declare const BadgeClass: ComponentClass; declare const MultiSelectComboBoxClass: ComponentClass; declare const MultiLineMappingsClass: ComponentClass; declare const AvatarClass: ComponentClass; declare const UserAttributeClass: ComponentClass; declare const UserAuthMethodClass: ComponentClass; declare const MappingsFieldClass: ComponentClass; declare const SamlGroupMappingsClass: ComponentClass; declare const PolicyValidationClass: ComponentClass; declare const CodeSnippetClass: ComponentClass; declare const ComboBoxClass: ComponentClass; declare const RadioGroupClass: ComponentClass; declare const DateFieldClass: ComponentClass; declare const CalendarClass: ComponentClass; declare const MonthDayFieldClass: ComponentClass; declare const MonthDayFieldPickerClass: ComponentClass; declare const ListClass: ComponentClass; declare const AppsListClass: ComponentClass; declare const ScopesListClass: ComponentClass; declare const ThirdPartyAppLogoClass: ComponentClass; declare const SecurityQuestionsSetupClass: ComponentClass; declare const SecurityQuestionsVerifyClass: ComponentClass; declare const HybridFieldClass: ComponentClass; declare const AlertClass: ComponentClass; declare const AddressFieldClass: ComponentClass; declare const CountrySubdivisionCityFieldClass: ComponentClass; declare const TimerButtonClass: ComponentClass; declare const CollapsibleContainerClass: ComponentClass; declare const RecoveryCodesClass: ComponentClass; declare const ActiveSessionsClass: ComponentClass; declare const HcaptchaClass: ComponentClass; declare const OutboundAppsClass: ComponentClass; declare const OutboundAppButtonClass: ComponentClass; declare const TrustedDevicesClass: ComponentClass; declare const TooltipClass: ComponentClass; declare const HoneypotClass: ComponentClass; declare const FilterClass: ComponentClass; declare const AttachmentClass: ComponentClass; declare const UserPasskeysClass: ComponentClass; declare const MultiSsoClass: ComponentClass; type KebabCase = S extends `${infer First}${infer Rest}` ? Rest extends Uncapitalize ? `${Uncapitalize}${KebabCase}` : `${Uncapitalize}-${KebabCase}` : S; type ComponentSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl'; type TextAlign = 'left' | 'right' | 'center'; type LayoutDirection = 'horizontal' | 'vertical'; type FlexAlignment = 'start' | 'center' | 'end'; type HTMLInputAttrs = Omit; type DescopeInputExtraProps = { 'full-width'?: boolean; bordered?: boolean; label?: string; placeholder?: string; size?: ComponentSize; 'helper-text'?: string; 'data-errormessage-pattern-mismatch'?: string; 'data-errormessage-value-missing'?: string; 'label-type'?: LabelType; 'external-input'?: boolean; }; type DescopeInputProps = HTMLInputAttrs & DescopeInputExtraProps; type PropsToAttrs> = { [K in keyof R as KebabCase]: R[K] | string; }; type TypographyVariants = 'h1' | 'h2' | 'h3' | 'subtitle1' | 'subtitle2' | 'body1' | 'body2'; type Mode = 'primary' | 'secondary' | 'error' | 'success'; type MultiSelectProps = { children?: React.JSX.Element[]; 'default-values'?: string[]; }; type LabelType = 'static' | 'floating'; type CaptchaVariants = 'text' | 'image' | 'widget' | 'hide'; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-checkbox': DescopeInputProps; } } } declare const Checkbox: React.ForwardRefExoticComponent & React.RefAttributes>; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-switch-toggle': DescopeInputProps; } } } declare const Switch: React.ForwardRefExoticComponent & React.RefAttributes>; type BooleanType = { type: 'switch' | 'checkbox'; }; type Props$T = React.ComponentProps & React.ComponentProps & BooleanType; declare const Boolean: React.ForwardRefExoticComponent & React.RefAttributes>; type TooltipPosition = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'start' | 'start-top' | 'start-bottom' | 'end' | 'end-top' | 'end-bottom'; type Props$S = { text?: string; position?: TooltipPosition; hoverDelay?: number; hideDelay?: number; opened?: boolean; readonly?: boolean; staticDisplay?: boolean; children?: React.ReactNode; }; declare module 'react' { interface HTMLAttributes { slot?: string; } } declare global { namespace React.JSX { interface IntrinsicElements { 'descope-tooltip': React.DetailedHTMLProps, HTMLElement> & Props$S; } } } declare const Tooltip: React.ForwardRefExoticComponent & Props$S & React.RefAttributes>; interface ITooltip { hasTooltip?: boolean; tooltipText?: string; tooltipPosition?: TooltipPosition; tooltipHoverDelay?: number; tooltipHideDelay?: number; tooltipOpened?: boolean; tooltipReadOnly?: boolean; tooltipStaticDisplay?: boolean; } declare global { namespace React.JSX { interface IntrinsicElements { 'descope-button': React.DetailedHTMLProps, HTMLButtonElement> & { size?: string; variant?: string; mode: string; square?: boolean; }; } } } declare const Button: React.ForwardRefExoticComponent & React.ButtonHTMLAttributes & { variant?: string; color?: string; size?: string; loading?: boolean; startIcon?: string; startIconDark?: string; startIconColorText?: boolean; 'full-width'?: boolean; 'data-name'?: string; ariaLabel?: string; } & ITooltip, "ref"> & React.RefAttributes>; type Props$R = { digits?: number; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-passcode': DescopeInputProps & Props$R; } } } declare const Code: React.ForwardRefExoticComponent & React.RefAttributes>; type Never$1> = { [K in keyof T]: never; }; type SpaceBetween$1 = '0' | '0.5' | '1' | '1.5' | '2' | '2.5' | '3' | '3.5' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '14' | '16' | '20' | '24' | '28' | '32'; type Flex$1 = { align?: 'start' | 'end' | 'center' | 'baseline' | 'stretch'; justify?: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly'; spaceBetween?: SpaceBetween$1; }; type ContainerAlignment$1 = { 'horizontal-alignment'?: FlexAlignment | 'space-between'; 'vertical-alignment'?: FlexAlignment; 'space-between'?: 'sm' | 'md' | 'lg'; }; type Props$Q = { direction?: 'row' | 'column'; shadow?: 'md' | 'lg' | 'xl' | '2xl'; borderRadius?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl'; paddingX?: string; paddingY?: string; background?: string; backgroundImageUrl?: string; width?: string; variant?: string; } & ((Flex$1 & Never$1) | (ContainerAlignment$1 & Never$1)); declare global { namespace React.JSX { interface IntrinsicElements { 'descope-container': React.DetailedHTMLProps, HTMLElement>; } } } declare const Container$1: React.ForwardRefExoticComponent<(Props$Q & React.HTMLAttributes) & React.RefAttributes>; type Props$P = { vertical?: boolean; italic?: boolean; variant?: TypographyVariants; mode?: Mode; children?: React.ReactNode; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-divider': React.DetailedHTMLProps, HTMLDivElement> & Omit; } } } declare const Divider: React.ForwardRefExoticComponent, HTMLDivElement>, "size"> & Props$P, "ref"> & React.RefAttributes>; declare const ReactComponent: (props: SVGProps) => React.JSX.Element; type Props$O = { width?: string; height?: string; alt?: string; src: string; 'src-dark'?: string; } & ITooltip; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-image': React.DetailedHTMLProps, HTMLElement> & Props$O; } } } declare const Image: React.ForwardRefExoticComponent<{ width?: string; height?: string; alt?: string; src: string; 'src-dark'?: string; } & ITooltip & React.HTMLAttributes & React.RefAttributes>; declare const Input: React.ForwardRefExoticComponent & React.RefAttributes>; type Props$N = { href?: string | undefined; italic?: boolean; variant?: TypographyVariants; mode?: Mode; textAlign?: TextAlign; 'full-width'?: boolean; readonly?: boolean; children?: React.ReactNode; } & ITooltip; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-link': React.DetailedHTMLProps, HTMLAnchorElement> & Omit; } } } declare const Link: React.ForwardRefExoticComponent<{ href?: string | undefined; italic?: boolean; variant?: TypographyVariants; mode?: Mode; textAlign?: TextAlign; 'full-width'?: boolean; readonly?: boolean; children?: React.ReactNode; } & ITooltip & React.RefAttributes>; type Props$M = { variant?: 'linear' | 'radial'; size?: 'xs' | 'sm' | 'md' | 'lg'; color?: Mode; }; type LoaderType = React.DetailedHTMLProps, HTMLElement> & PropsToAttrs; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-loader-linear': LoaderType; 'descope-loader-radial': LoaderType; } } } declare const Loader: React.ForwardRefExoticComponent>; type Props$L = { width?: string; height?: string; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-logo': React.DetailedHTMLProps, HTMLElement> & PropsToAttrs; } } } declare const Logo: React.ForwardRefExoticComponent>; type Props$K = { 'password-label'?: string; 'password-placeholder'?: string; 'confirm-label'?: string; 'confirm-placeholder'?: string; 'has-confirm'?: boolean; 'policy-label'?: string; 'has-validation'?: boolean; 'active-policies'?: string[]; 'data-password-policy-pattern-minlength'?: string; 'data-password-policy-pattern-lowercase'?: string; 'data-password-policy-pattern-uppercase'?: string; 'data-password-policy-pattern-anyletter'?: string; 'data-password-policy-pattern-number'?: string; 'data-password-policy-pattern-nonalphanumeric'?: string; 'data-password-policy-message-minlength'?: string; 'data-password-policy-message-lowercase'?: string; 'data-password-policy-message-uppercase'?: string; 'data-password-policy-message-anyletter'?: string; 'data-password-policy-message-number'?: string; 'data-password-policy-message-nonalphanumeric'?: string; 'data-password-policy-message-passwordstrength'?: string; 'data-password-policy-message-disallowedchars'?: string; 'data-password-policy-message-disallowemail'?: string; 'data-password-policy-message-reuse'?: string; 'data-password-policy-value-minlength'?: string; 'data-password-policy-value-disallowedchars'?: string; 'data-password-policy-value-email'?: string; 'data-password-policy-value-reuse'?: string; 'st-policy-preview-background-color'?: string; 'st-policy-preview-padding'?: string; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-new-password': DescopeInputProps & Props$K; } } } declare const NewPassword: React.ForwardRefExoticComponent & React.RefAttributes>; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-number-field': DescopeInputProps; } } } declare const NumberField: React.ForwardRefExoticComponent & React.RefAttributes>; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-password': DescopeInputProps; } } } declare const Password: React.ForwardRefExoticComponent & React.RefAttributes>; type Props$J = { variant: 'countrySelection' | 'inputBox'; 'default-code'?: string; 'phone-input-placeholder'?: string; 'country-input-placeholder'?: string; 'restrict-countries'?: string; 'format-value'?: boolean; 'strict-validation'?: boolean; } & DescopeInputProps; declare const Phone: React.ForwardRefExoticComponent & React.RefAttributes>; type Props$I = { children?: React.JSX.Element[]; data?: string | Record[]; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-combo-box': DescopeInputProps & { data?: string; }; } } } declare const Select: React.ForwardRefExoticComponent & React.RefAttributes>; type Props$H = { italic?: boolean; variant?: string; mode?: string; isEnriched?: boolean; 'full-width'?: boolean; 'text-align'?: TextAlign; 'hide-when-empty'?: boolean; } & ITooltip; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-text': React.DetailedHTMLProps, HTMLElement> & Props$H; 'descope-enriched-text': React.DetailedHTMLProps, HTMLElement> & Props$H & { readonly?: boolean; }; } } } declare const Text: React.ForwardRefExoticComponent, "mode">, "ref"> & React.RefAttributes>; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-text-area': DescopeInputProps; } } } declare const Textarea: React.ForwardRefExoticComponent & React.RefAttributes>; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-text-field': DescopeInputProps; } } } declare const TextField: React.ForwardRefExoticComponent & React.RefAttributes>; type Props$G = { width?: string; height?: string; component?: 'code' | 'text'; children?: string; variant?: TypographyVariants; mode?: Mode; 'text-align'?: TextAlign; 'hide-when-empty'?: boolean; } & ITooltip; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-totp-image': React.DetailedHTMLProps, HTMLElement> & PropsToAttrs; } } } declare const TOTPImage: React.ForwardRefExoticComponent<{ width?: string; height?: string; component?: "code" | "text"; children?: string; variant?: TypographyVariants; mode?: Mode; 'text-align'?: TextAlign; 'hide-when-empty'?: boolean; } & ITooltip & React.RefAttributes>; type Props$F = Omit, 'href'>; declare const TOTPLink: React.ForwardRefExoticComponent & React.RefAttributes>; type Props$E = { width?: string; height?: string; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-notp-image': React.DetailedHTMLProps, HTMLElement> & PropsToAttrs; } } } declare const NOTPImage: React.ForwardRefExoticComponent>; type Props$D = Omit, 'href'>; declare const NOTPLink: React.ForwardRefExoticComponent & React.RefAttributes>; type Props$C = { title?: string; description?: string; icon?: string; size?: ComponentSize; 'button-label'?: string; 'button-mode'?: string; 'button-variant'?: string; accept?: string; name?: string; readonly?: boolean; required?: boolean; bordered?: boolean; 'full-width'?: boolean; 'data-errormessage-value-missing'?: string; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-upload-file': React.DetailedHTMLProps, HTMLElement> & Props$C; } } } declare const UploadFile: React.ForwardRefExoticComponent & React.RefAttributes>; type Props$B = { enabled?: boolean; 'site-key'?: string; enterprise?: boolean; action?: string; variant?: CaptchaVariants; textLabel?: string; textVariant?: TypographyVariants; textMode?: Mode; textAlign?: TextAlign; 'full-width'?: boolean; readOnly?: boolean; }; declare global { interface Window { onRecaptchaLoadCallback: () => void; } namespace React.JSX { interface IntrinsicElements { 'descope-recaptcha': React.DetailedHTMLProps, HTMLElement> & Props$B; } } } declare const Recaptcha: React.ForwardRefExoticComponent & React.RefAttributes>; type Props$A = { name?: string; connector?: string; enterprise?: boolean; action?: string; enabled?: boolean; textLabel?: string; textVariant?: TypographyVariants; textMode?: Mode; textAlign?: TextAlign; 'full-width'?: boolean; readOnly?: boolean; variant?: CaptchaVariants; src?: string; width?: string; height?: string; }; declare const RecaptchaV2: React.ForwardRefExoticComponent & React.RefAttributes>; type Props$z = DescopeInputProps & { 'default-value'?: string; 'allow-deselect'?: boolean; layout?: LayoutDirection; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-button-selection-group': Props$z; 'descope-button-selection-group-item': React.JSX.IntrinsicElements['span'] & { value: string; children: string; }; } } } declare const ButtonSelectionGroup: React.ForwardRefExoticComponent & React.RefAttributes>; type Item$5 = { label: string; value: string; }; type SingleSelectType = { variant?: 'buttonSelectionGroup' | 'combobox' | 'radioGroup'; data?: Item$5[]; allowClearValue?: boolean; layout?: LayoutDirection; 'label-type'?: LabelType; }; type Props$y = Omit, 'allow-deselect'> & SingleSelectType; declare const SingleSelect: React.ForwardRefExoticComponent & React.RefAttributes>; type Props$x = DescopeInputProps & { 'default-value'?: string; 'item-label-path'?: string; 'item-value-path'?: string; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-combobox': Props$x; } } } declare const ComboBox: React.ForwardRefExoticComponent & React.RefAttributes>; type Column = { path: ''; header: string; type: 'selection' | 'text'; attrs: { frozen: boolean; 'auto-width': boolean; resizable: boolean; }; }; type Props$w = { identifier: any; children?: React.JSX.Element[]; size?: Omit; bordered?: boolean; columns?: Column[]; 'column-reordering-allowed'?: boolean; data?: Record; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-grid': React.DetailedHTMLProps, HTMLElement>; } } } declare const Grid: React.ForwardRefExoticComponent>; type ColumnProps = { sortable?: boolean; path: string; header: string; resizable?: boolean; 'auto-width?': boolean; frozen?: boolean; }; declare const GridCustomColumn: React.ForwardRefExoticComponent>; declare const GridSelectionColumn: React.ForwardRefExoticComponent>; declare const GridTextColumn: React.ForwardRefExoticComponent>; declare const GridItemDetailsColumn: React.ForwardRefExoticComponent>; type Props$v = { mode?: string; size?: string; bordered?: boolean; 'full-width'?: boolean; variant?: string; shrinkToIndicator?: boolean; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-badge': React.DetailedHTMLProps, HTMLElement> & Props$v; } } } declare const Badge: React.ForwardRefExoticComponent & React.RefAttributes>; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-modal': React.DetailedHTMLProps, HTMLElement>; } } } type Props$u = { opened?: boolean; }; declare const Modal: React.ForwardRefExoticComponent>; type Props$t = DescopeInputProps & { size?: 'xs' | 'sm' | 'md' | 'lg'; 'min-items-selection'?: number; 'max-items-selection'?: number; layout?: LayoutDirection; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-button-multi-selection-group': Props$t & { 'default-values'?: string; }; 'descope-button-selection-group-item': React.JSX.IntrinsicElements['span'] & { value: string; children: string; }; } } } declare const ButtonMultiSelectionGroup: React.ForwardRefExoticComponent & React.RefAttributes>; type Item$4 = { label: string; value: string; }; type MultiSelectType = { variant?: 'buttonSelectionGroup' | 'combobox' | 'dynamicCombobox'; data?: Item$4[]; 'min-items-selection'?: number; 'max-items-selection'?: number; 'label-type'?: string; }; type Props$s = Omit, 'default-values'> & MultiSelectType & { 'default-values'?: string[]; }; declare const MultiSelect: React.ForwardRefExoticComponent & React.RefAttributes>; type Item$3 = { label: string; value: string; }; type Props$r = Omit & { 'label-value'?: string; 'label-attr'?: string; 'button-label'?: string; separator?: string; size?: 'xs' | 'sm' | 'md' | 'lg'; 'default-values'?: Record[]; options?: Item$3[]; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-mappings-field': Omit & { 'default-values'?: string; options?: string; }; } } } declare const MappingsField: React.ForwardRefExoticComponent & React.RefAttributes>; type Item$2 = { label: string; value: string; }; type Props$q = Omit & { 'label-value'?: string; 'label-attr'?: string; 'label-group'?: string; 'button-label'?: string; separator?: string; size?: 'xs' | 'sm' | 'md' | 'lg'; options?: Item$2[]; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-saml-group-mappings': Omit & { options?: string; }; } } } declare const SAMLGroupMappings: React.ForwardRefExoticComponent & React.RefAttributes>; type DataEntry = string[] | { label?: string; options?: string[]; }; type Props$p = { size?: 'xs' | 'sm' | 'md' | 'lg'; disabled?: boolean; readonly?: boolean; 'full-width'?: boolean; 'max-rows'?: number; 'first-label'?: string; 'second-label'?: string; 'first-placeholder'?: string; 'second-placeholder'?: string; 'first-value-key'?: string; 'second-value-key'?: string; 'merge-rows'?: boolean; data?: Record; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-multi-line-mappings': React.DetailedHTMLProps, HTMLElement> & Omit & { data?: string; }; } } } declare const MultiLineMappings: React.ForwardRefExoticComponent>; type SsoConfiguration = { id: string; name: string; isDefault?: boolean; link?: string; authType?: string; authOnly?: boolean; }; type Props$o = { label?: string; 'create-button-label'?: string; 'full-width'?: boolean; 'allow-create'?: boolean; 'allow-delete'?: boolean; 'allow-configure'?: boolean; 'delete-tooltip-label'?: string; 'configure-tooltip-label'?: string; 'auth-only-label'?: string; data?: SsoConfiguration[]; 'data-create-flow-id'?: string; 'data-delete-flow-id'?: string; titleIconLight?: string; titleIconDark?: string; createButtonIconLight?: string; createButtonIconDark?: string; deleteIconLight?: string; deleteIconDark?: string; externalLinkIconLight?: string; externalLinkIconDark?: string; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-multi-sso': React.DetailedHTMLProps, HTMLElement> & PropsToAttrs; } } } declare const MultiSso: React.ForwardRefExoticComponent>; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-user-auth-method': React.DetailedHTMLProps, HTMLElement> & { methodIcon?: string; buttonIcon?: string; }; } } } declare const UserAuthMethod: React.ForwardRefExoticComponent & React.HTMLAttributes & { label?: string; 'button-label'?: string; fulfilled?: boolean; 'full-width'?: boolean; methodIcon?: string; methodIconDark?: string; buttonIcon?: string; buttonIconDark?: string; fulfilledButtonIcon?: string; fulfilledButtonIconDark?: string; }, "ref"> & React.RefAttributes>; type Props$n = { 'badge-tooltip-text'?: string; 'badge-label'?: string; value?: string; placeholder?: string; label?: string; 'full-width'?: boolean; required?: boolean; 'show-copy'?: boolean; 'copy-button-label'?: string; deleteIconLight?: string; editIconLight?: string; deleteIconDark?: string; editIconDark?: string; copyIconLight?: string; copyIconDark?: string; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-user-attribute': React.DetailedHTMLProps, HTMLElement> & Props$n; } } } declare const UserAttribute: React.ForwardRefExoticComponent & React.HTMLAttributes & Props$n, "ref"> & React.RefAttributes>; type Props$m = { img?: string; 'display-name'?: string; size?: string; editable?: boolean; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-avatar': React.DetailedHTMLProps, HTMLElement> & Props$m; } } } declare const Avatar: React.ForwardRefExoticComponent & React.HTMLAttributes & Props$m, "ref"> & React.RefAttributes>; type Props$l = { lang?: 'xml' | 'html' | 'javascript' | 'css' | 'json'; inline?: boolean; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-code-snippet': React.DetailedHTMLProps, HTMLElement> & Props$l; } } } declare const CodeSnippet: React.ForwardRefExoticComponent & React.RefAttributes>; type Props$k = { emptyState?: React.ReactNode; children?: React.ReactNode[]; variant?: 'list' | 'tiles'; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-list': React.DetailedHTMLProps, HTMLElement> & PropsToAttrs; } } } declare const List: React.ForwardRefExoticComponent>; type Props$j = { variant?: 'row' | 'tile'; children?: React.ReactNode; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-list-item': React.DetailedHTMLProps, HTMLElement> & PropsToAttrs; } } } declare const ListItem: React.ForwardRefExoticComponent>; type Props$i = { emptyState?: React.ReactNode; variant?: 'list' | 'tiles' | 'custom'; data?: any[]; readonly?: boolean; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-apps-list': React.DetailedHTMLProps, HTMLElement> & PropsToAttrs; } } } declare const AppsList: React.ForwardRefExoticComponent>; type Item$1 = { desc: string; id: string; required?: boolean; }; type Props$h = { variant?: 'checkbox' | 'switch'; data?: Item$1[]; readonly?: boolean; size: 'xs' | 'sm' | 'md' | 'lg'; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-scopes-list': React.DetailedHTMLProps, HTMLElement> & PropsToAttrs; } } } declare const ScopesList: React.ForwardRefExoticComponent>; type Question$1 = { id: string; text: string; }; type Props$g = { questions?: Question$1[]; readonly?: boolean; size?: 'xs' | 'sm' | 'md' | 'lg'; 'st-gap'?: string; count?: number; 'full-width'?: boolean; 'question-label'?: string; 'answer-label'?: string; 'question-placeholder'?: string; 'answer-placeholder'?: string; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-security-questions-setup': React.DetailedHTMLProps, HTMLElement> & PropsToAttrs; } } } declare const SecurityQuestionsSetup: React.ForwardRefExoticComponent>; type Question = { id: string; text: string; }; type Props$f = { questions?: Question[]; readonly?: boolean; size?: 'xs' | 'sm' | 'md' | 'lg'; 'st-gap'?: string; 'full-width'?: boolean; 'answer-placeholder'?: string; 'question-mode'?: string; 'st-question-text-align'?: string; 'answer-data-errormessage-value-missing'?: string; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-security-questions-verify': React.DetailedHTMLProps, HTMLElement> & PropsToAttrs; } } } declare const SecurityQuestionsVerify: React.ForwardRefExoticComponent>; type Props$e = { size: 'xs' | 'sm' | 'md' | 'lg'; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-third-party-app-logo': React.DetailedHTMLProps, HTMLElement> & PropsToAttrs; } } } declare const ThirdPartyAppLogo: React.ForwardRefExoticComponent>; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-date-field': Omit; } } } declare const DateField: React.ForwardRefExoticComponent, "ref"> & React.RefAttributes>; type MonthDayFieldProps = Omit; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-month-day-field': MonthDayFieldProps; } } } declare const MonthDayField: React.ForwardRefExoticComponent & React.RefAttributes>; type Props$d = { variant?: 'countrySelection' | 'inputBox'; 'default-code'?: string; 'phone-input-label'?: string; 'phone-input-placeholder'?: string; 'restrict-countries'?: string; 'full-width'?: boolean; bordered?: boolean; label?: string; placeholder?: string; size?: ComponentSize; 'helper-text'?: string; 'data-errormessage-pattern-mismatch-email'?: string; 'data-errormessage-value-missing-email'?: string; 'data-errormessage-value-missing-phone'?: string; 'label-type'?: LabelType; 'external-input'?: boolean; } & DescopeInputProps; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-hybrid-field': React.DetailedHTMLProps, HTMLInputElement> & PropsToAttrs; } } } declare const HybridField: React.ForwardRefExoticComponent & React.HTMLAttributes & { variant?: "countrySelection" | "inputBox"; 'default-code'?: string; 'phone-input-label'?: string; 'phone-input-placeholder'?: string; 'restrict-countries'?: string; 'full-width'?: boolean; bordered?: boolean; label?: string; placeholder?: string; size?: ComponentSize; 'helper-text'?: string; 'data-errormessage-pattern-mismatch-email'?: string; 'data-errormessage-value-missing-email'?: string; 'data-errormessage-value-missing-phone'?: string; 'label-type'?: LabelType; 'external-input'?: boolean; } & HTMLInputAttrs & DescopeInputExtraProps, "ref"> & React.RefAttributes>; type Props$c = { mode?: string; variant?: string; bordered?: boolean; children?: string; 'text-align'?: TextAlign; 'full-width'?: boolean; 'link-target-blank'?: boolean; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-alert': React.DetailedHTMLProps, HTMLElement> & Props$c; } } } declare const Alert: React.ForwardRefExoticComponent>; type Props$b = { 'data-connector-id'?: string; 'connector-template'?: string; 'min-search-length'?: number; 'allow-custom-value'?: boolean; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-address-field': Omit & Props$b; } } } declare const AddressField: React.ForwardRefExoticComponent & Props$b, "ref"> & React.RefAttributes>; type CountrySubdivisionCityValue = { country?: string; subdivision?: string; city?: string; }; type Props$a = { 'hide-country'?: boolean; 'hide-subdivision'?: boolean; 'hide-city'?: boolean; 'default-country'?: string; 'allowed-countries'?: string; 'pinned-countries'?: string; 'country-label'?: string; 'subdivision-label'?: string; 'city-label'?: string; 'country-placeholder'?: string; 'subdivision-placeholder'?: string; 'city-placeholder'?: string; 'data-source-base-url'?: string; lang?: string; value?: CountrySubdivisionCityValue; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-country-subdivision-city-field': Omit & Props$a; } } } declare const CountrySubdivisionCityField: React.ForwardRefExoticComponent & Props$a, "ref"> & React.RefAttributes>; type Props$9 = React.JSX.IntrinsicElements['button'] & { variant?: string; color?: string; size?: string; horizontal?: boolean; 'text-align'?: TextAlign; 'full-width'?: boolean; 'timer-seconds'?: number; 'timer-hide-icon'?: boolean; 'timer-paused'?: boolean; 'timer-position'?: 'start' | 'end'; 'timer-inside'?: boolean; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-timer-button': React.DetailedHTMLProps, HTMLButtonElement> & Props$9; } } } declare const TimerButton: React.ForwardRefExoticComponent & React.ButtonHTMLAttributes & { variant?: string; color?: string; size?: string; horizontal?: boolean; 'text-align'?: TextAlign; 'full-width'?: boolean; 'timer-seconds'?: number; 'timer-hide-icon'?: boolean; 'timer-paused'?: boolean; 'timer-position'?: "start" | "end"; 'timer-inside'?: boolean; }, "ref"> & React.RefAttributes>; type Never> = { [K in keyof T]: never; }; type SpaceBetween = '0' | '0.5' | '1' | '1.5' | '2' | '2.5' | '3' | '3.5' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '14' | '16' | '20' | '24' | '28' | '32'; type Flex = { spaceBetween?: SpaceBetween; }; type ContainerAlignment = { 'horizontal-alignment'?: FlexAlignment | 'space-between'; 'vertical-alignment'?: FlexAlignment; 'space-between'?: 'sm' | 'md' | 'lg'; }; type Props$8 = { shadow?: 'md' | 'lg' | 'xl' | '2xl'; borderRadius?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl'; paddingX?: string; paddingY?: string; background?: string; backgroundImageUrl?: string; width?: string; collapsible?: boolean; 'icon-position'?: 'right' | 'left'; 'attach-icon'?: boolean; 'fill-title'?: boolean; border?: boolean; text?: string; 'icon-name'?: string; collapsed?: boolean; 'text-align'?: 'left' | 'right' | 'center'; 'text-variant'?: 'body1' | 'body2' | 'subtitle1' | 'h1' | 'h2' | 'h3' | 'subtitle2'; 'text-mode'?: 'primary' | 'secondary' | 'error' | 'success'; } & ((Flex & Never) | (ContainerAlignment & Never)); declare global { namespace React.JSX { interface IntrinsicElements { 'descope-collapsible-container': React.DetailedHTMLProps, HTMLElement>; } } } declare const Container: React.ForwardRefExoticComponent<(Props$8 & React.HTMLAttributes) & React.RefAttributes>; type Props$7 = { connector?: string; action?: string; textLabel?: string; textVariant?: TypographyVariants; textMode?: Mode; textAlign?: TextAlign; readonly?: boolean; 'full-width'?: boolean; }; declare const Turnstile: React.ForwardRefExoticComponent & React.RefAttributes>; type Item = { value: string; }; type Props$6 = { variant?: string; mode?: string; 'text-align': TextAlign; 'full-width': boolean; data?: Item[]; name?: string; required?: boolean; 'data-errormessage-value-missing'?: string; 'display-variant'?: 'icons' | 'buttons'; 'show-download'?: boolean; 'st-horizontal-padding'?: string; 'st-vertical-padding'?: string; 'copy-text'?: string; 'copy-variant'?: string; 'copy-color'?: string; 'copy-size'?: string; 'copy-icon'?: string; 'copy-icon-dark'?: string; 'download-text'?: string; 'download-variant'?: string; 'download-color'?: string; 'download-size'?: string; 'download-icon'?: string; 'download-icon-dark'?: string; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-recovery-codes': React.DetailedHTMLProps, HTMLElement> & PropsToAttrs; } } } declare const RecoveryCodesList: React.ForwardRefExoticComponent>; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-hcaptcha': React.DetailedHTMLProps, HTMLElement> & Props$5; } } } type Props$5 = { connector?: string; enabled?: boolean; }; declare const Hcaptcha: React.ForwardRefExoticComponent & React.RefAttributes>; type Props$4 = { emptyState?: React.ReactNode; size?: string; data?: any[]; readonly?: boolean; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-outbound-apps': React.DetailedHTMLProps, HTMLElement> & PropsToAttrs; } } } declare const OutboundApps: React.ForwardRefExoticComponent>; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-outbound-app-button': React.DetailedHTMLProps, HTMLButtonElement> & { label?: string; iconSrc?: string; size?: string; variant?: string; mode: string; square?: boolean; }; } } } declare const OutboundAppButton: React.ForwardRefExoticComponent & React.ButtonHTMLAttributes & { children?: string; label?: string; iconSrc?: string; iconFill?: boolean; variant?: string; color?: string; size?: string; loading?: boolean; 'full-width'?: boolean; 'data-name'?: string; }, "ref"> & React.RefAttributes>; type Device = { id: string; name: string; deviceType: 'desktop' | 'mobile' | 'tablet' | 'unknown'; lastLoginDate: number; }; type Props$3 = { emptyState?: React.ReactNode; data?: Device[]; format?: string; readonly?: boolean; 'full-width'?: boolean; 'hide-actions'?: boolean; 'remove-device-label'?: string; 'current-device-label'?: string; 'last-login-label'?: string; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-trusted-devices': React.DetailedHTMLProps, HTMLElement> & PropsToAttrs; } } } declare const TrustedDevices: React.ForwardRefExoticComponent>; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-ponyhot': React.DetailedHTMLProps, HTMLElement>; } } } interface HoneypotProps { name: string; type: 'text' | 'password' | 'address' | 'url' | 'tel'; } declare const Honeypot: React.ForwardRefExoticComponent>; declare const TenantSelector: React.ForwardRefExoticComponent<{ children?: React.JSX.Element[]; } & React.RefAttributes>; type FilterColumn = { id: string; label: string; inputType: 'text' | 'number' | 'email' | 'boolean' | 'singleselect' | 'multiselect'; options?: { value: string; label: string; }[]; operators?: string[] | { id: string; label: string; noValue?: boolean; prefix?: string; suffix?: string; }[]; }; type FilterOperator = 'equal' | 'not-equal' | 'contains' | 'not-contains' | 'starts-with' | 'ends-with' | 'is-any-of' | 'not-any-of' | 'is-empty' | 'is-not-empty' | 'gt' | 'lt' | 'gte' | 'lte'; type FilterRow = { id?: string; column: string; operator: FilterOperator | (string & {}); value: string | string[] | null; prefix?: string; suffix?: string; }; type FilterOperatorsCatalog = Record; type FilterProps = { label?: string; buttonMode?: 'primary' | 'secondary' | 'success' | 'error'; buttonVariant?: 'contained' | 'outline' | 'link'; size?: 'xs' | 'sm' | 'md' | 'lg'; 'disable-indicator'?: boolean; 'full-width'?: boolean; 'label-type'?: 'static' | 'floating'; data?: FilterColumn[]; value?: FilterRow[]; operators?: FilterOperatorsCatalog; 'add-button-label'?: string; 'clear-all-button-label'?: string; readOnly?: boolean; buttonIconLight?: string; buttonIconDark?: string; addRowIconLight?: string; addRowIconDark?: string; deleteRowIconLight?: string; deleteRowIconDark?: string; children?: React.ReactNode; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-filter': React.DetailedHTMLProps, HTMLElement> & PropsToAttrs; } } } declare const Filter: React.ForwardRefExoticComponent>; type Position = 'top-start' | 'top-end' | 'top-center' | 'bottom-start' | 'bottom-end' | 'bottom-center'; type Props$2 = { position?: Position; attachment?: React.ReactElement>; offsetX?: number; offsetY?: number; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-attachment': React.DetailedHTMLProps, HTMLElement> & { position?: Position; offsetX?: number; offsetY?: number; }; } } } declare const Attachment: React.ForwardRefExoticComponent & React.RefAttributes>; declare const LastAuthBadge: React.ForwardRefExoticComponent>; offsetX?: number; offsetY?: number; } & React.HTMLAttributes & React.RefAttributes, "attachment"> & { badgeLabel?: string; } & React.HTMLAttributes, "ref"> & React.RefAttributes>; type PasskeyType = 'apple' | 'google' | 'windows' | 'chrome' | 'edge' | 'samsung' | '1password' | 'bitwarden' | 'lastpass' | 'dashlane' | 'keeper' | 'keepassxc' | 'proton' | 'nordpass' | 'enpass' | 'key' | 'phone' | 'other'; type Passkey = { id: string; name: string; passkeyType: PasskeyType; createdAt: number; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-user-passkeys': React.DetailedHTMLProps, HTMLElement> & { label?: string; 'add-button-label'?: string; 'allow-remove'?: boolean; format?: string; 'created-at-label'?: string; 'full-width'?: boolean; data?: Passkey[] | string; }; } } } declare const UserPasskeys: React.ForwardRefExoticComponent & { label?: string; addButtonLabel?: string; removeButtonLabel?: string; createdAtLabel?: string; allowRemove?: boolean; format?: string; readOnly?: boolean; 'full-width'?: boolean; methodIcon?: string; methodIconDark?: string; buttonIcon?: string; buttonIconDark?: string; removeIcon?: string; removeIconDark?: string; data?: Passkey[] | string; } & React.RefAttributes>; type Session = { value: string; deviceName?: string; deviceType?: 'desktop' | 'mobile' | 'tablet' | 'unknown'; city?: string; country?: string; loginTime?: number; }; type Props$1 = DescopeInputProps & { size?: 'xs' | 'sm' | 'md' | 'lg'; data?: Session[]; 'min-items-selection'?: number; 'max-items-selection'?: number; 'last-login-label'?: string; 'unknown-device-label'?: string; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-active-sessions': React.DetailedHTMLProps, HTMLElement> & PropsToAttrs; } } } declare const ActiveSessions: React.ForwardRefExoticComponent & React.RefAttributes>; type Props = DescopeInputProps & { layout?: LayoutDirection; }; declare global { namespace React.JSX { interface IntrinsicElements { 'descope-radio-group': Props & { 'default-value'?: string; }; 'descope-radio-button': React.JSX.IntrinsicElements['span'] & { value: string; children: string; }; } } } declare const RadioGroup: React.ForwardRefExoticComponent & React.RefAttributes>; interface IComponentThemeManager { currentThemeName: string; currentTheme: Theme; themes: Record; hasThemes: boolean; } type Palette = { main: string; light: string; highlight: string; dark: string; contrast: string; }; declare const globalsThemeToStyle: (theme: string, themeName: string) => string; declare const createComponentsTheme: (componentsTheme: Record) => Record; declare const themeToStyle: (theme: Theme, themeName?: string) => Record; declare const componentsThemeManager: IComponentThemeManager; declare const genColor: (val: string, theme?: string) => Palette; declare const themeVars: Theme; declare const defaultTheme: Theme; declare const darkTheme: Theme; type Theme = { globals: { colors: Record; fonts: Record; typography: Record; shadow: Record; spacing: Record; radius: Record; border: Record; }; components: { button: Record; textField: Record; logo: Record; container: Record; link: Record; text: Record; inputWrapper: Record; buttonSelectionGroupItem: Record; buttonMultiSelectionGroup: Record; tooltip: Record; badge: Record; radioGroup: Record; }; }; export { ActiveSessions, ActiveSessionsClass, AddressField, AddressFieldClass, Alert, AlertClass, AppsList, AppsListClass, Attachment, AttachmentClass, Avatar, AvatarClass, Badge, BadgeClass, Boolean, Button, ButtonClass, ButtonMultiSelectionGroupClass, ButtonSelectionGroupClass, CalendarClass, Checkbox, CheckboxClass, Code, CodeSnippet, CodeSnippetClass, Container as CollapsibleContainer, CollapsibleContainerClass, ComboBox, ComboBoxClass, Container$1 as Container, ContainerClass, CountrySubdivisionCityField, CountrySubdivisionCityFieldClass, DateField, DateFieldClass, Divider, DividerClass, EmailFieldClass, EnrichedTextClass, Filter, FilterClass, Grid, GridClass, GridCustomColumn, GridItemDetailsColumn, GridSelectionColumn, GridTextColumn, Hcaptcha, HcaptchaClass, Honeypot, HoneypotClass, HybridField, HybridFieldClass, IconClass, Image, ImageClass, Input, LastAuthBadge, Link, LinkClass, List, ListClass, ListItem, Loader, LoaderLinearClass, LoaderRadialClass, Logo, LogoClass, MappingsField, MappingsFieldClass, Modal, ModalClass, MonthDayField, MonthDayFieldClass, MonthDayFieldPickerClass, MultiLineMappings, MultiLineMappingsClass, MultiSelect, MultiSelectComboBoxClass, MultiSso, MultiSsoClass, NOTPImage, NOTPLink, NewEmailClass, NewPassword, NewPasswordClass, NotificationClass, NotpImageClass, NumberField, NumberFieldClass, OutboundAppButton, OutboundAppButtonClass, OutboundApps, OutboundAppsClass, PasscodeClass, Password, PasswordClass, Phone, PhoneFieldClass, PhoneFieldInputBoxClass, PolicyValidationClass, RadioGroup, RadioGroupClass, Recaptcha, RecaptchaClass, RecaptchaV2, RecoveryCodesClass, RecoveryCodesList, SAMLGroupMappings, SamlGroupMappingsClass, ScopesList, ScopesListClass, SecurityQuestionsSetup, SecurityQuestionsSetupClass, SecurityQuestionsVerify, SecurityQuestionsVerifyClass, Select, SingleSelect, Switch, SwitchToggleClass, TOTPImage, TOTPLink, TenantSelector, Text, TextAreaClass, TextClass, TextField, TextFieldClass, Textarea, ThirdPartyAppLogo, ThirdPartyAppLogoClass, TimerButton, TimerButtonClass, Tooltip, TooltipClass, TotpImageClass, TrustedDevices, TrustedDevicesClass, Turnstile, UploadFile, UploadFileClass, UserAttribute, UserAttributeClass, UserAuthMethod, UserAuthMethodClass, UserPasskeys, UserPasskeysClass, ReactComponent as apple, ReactComponent as authenticator, componentsThemeManager, createComponentsTheme, darkTheme, defaultTheme, ReactComponent as discord, ReactComponent as edit, ReactComponent as facebook, ReactComponent as fingerprint, genColor, ReactComponent as github, ReactComponent as gitlab, globalsThemeToStyle, ReactComponent as google, ReactComponent as linkedin, ReactComponent as lock, ReactComponent as microsoft, ReactComponent as passkey, ReactComponent as password, ReactComponent as plus, ReactComponent as reload, ReactComponent as sessiontoken, ReactComponent as slack, ReactComponent as sso, themeToStyle, themeVars, ReactComponent as whatsapp }; export type { Theme };