import * as AccordionPrimitive from '@radix-ui/react-accordion'; import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog'; import * as AvatarPrimitive from '@radix-ui/react-avatar'; import { ButtonProps as ButtonProps_2 } from './button'; import { ChangeEvent } from 'react'; import { ChartOptions } from 'highcharts'; import * as CheckboxPrimitive from '@radix-ui/react-checkbox'; import { ClassNameValue } from 'tailwind-merge'; import { ClassProp } from 'class-variance-authority/types'; import { ClassValue } from 'clsx'; import * as CollapsiblePrimitive from '@radix-ui/react-collapsible'; import { ColumnDef } from '@tanstack/react-table'; import { ComponentType } from 'react'; import { ControllerProps } from 'react-hook-form'; import { DateCalendarProps } from '@mui/x-date-pickers/DateCalendar/DateCalendar.types'; import { DateCalendarProps as DateCalendarProps_2 } from '@mui/x-date-pickers'; import { default as default_2 } from 'react'; import { DevtoolsOptions } from 'zustand/middleware'; import * as DialogPrimitive from '@radix-ui/react-dialog'; import { DialogProps } from '@radix-ui/react-dialog'; import { Draft } from 'immer'; import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu'; import { FC } from 'react'; import { FieldError } from 'react-hook-form'; import { FieldPath } from 'react-hook-form'; import { FieldValues } from 'react-hook-form'; import { FormProviderProps } from 'react-hook-form'; import { GoogleMaterialIcon } from 'google-material-icons/outlined'; import { InputProps as InputProps_2 } from './input'; import { JSX as JSX_2 } from 'react/jsx-runtime'; import * as LabelPrimitive from '@radix-ui/react-label'; import { Local_DTO } from '../Models/dto'; import { LocalizedStrings } from 'react-localization'; import { Moment } from 'moment'; import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu'; import * as PopoverPrimitive from '@radix-ui/react-popover'; import { PopoverProps } from '@radix-ui/react-popover'; import * as ProgressPrimitive from '@radix-ui/react-progress'; import { QueryClient } from '@tanstack/react-query'; import { QueryKey } from '@tanstack/react-query'; import { QuerySessionStatusArgs } from 'oidc-client-ts'; import { QueryStatus } from '@tanstack/react-query'; import * as RadioGroupPrimitive from '@radix-ui/react-radio-group'; import * as React_2 from 'react'; import { ReactNode } from 'react'; import { RenderProps } from 'input-otp'; import { RevokeTokensTypes } from 'oidc-client-ts'; import { Row } from '@tanstack/react-table'; import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area'; import * as SelectPrimitive from '@radix-ui/react-select'; import * as SeparatorPrimitive from '@radix-ui/react-separator'; import { SeparatorProps } from '@radix-ui/react-separator'; import { SeriesPieOptions } from 'highcharts'; import { SessionStatus } from 'oidc-client-ts'; import { SigninPopupArgs } from 'oidc-client-ts'; import { SigninRedirectArgs } from 'oidc-client-ts'; import { SigninResourceOwnerCredentialsArgs } from 'oidc-client-ts'; import { SigninSilentArgs } from 'oidc-client-ts'; import { SignoutPopupArgs } from 'oidc-client-ts'; import { SignoutRedirectArgs } from 'oidc-client-ts'; import { SignoutSilentArgs } from 'oidc-client-ts'; import * as SliderPrimitive from '@radix-ui/react-slider'; import { SlotProps } from '@radix-ui/react-slot'; import { SlotProps as SlotProps_2 } from 'input-otp'; import { StateCreator } from 'zustand'; import { StoreApi } from 'zustand'; import { SubmitHandler } from 'react-hook-form'; import * as SwitchPrimitives from '@radix-ui/react-switch'; import * as TabsPrimitive from '@radix-ui/react-tabs'; import * as ToastPrimitives from '@radix-ui/react-toast'; import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group'; import * as TogglePrimitive from '@radix-ui/react-toggle'; import * as TooltipPrimitive from '@radix-ui/react-tooltip'; import { UseBoundStore } from 'zustand'; import { useController } from 'react-hook-form'; import { useFieldArray } from 'react-hook-form'; import { useForm } from 'react-hook-form'; import { useFormContext } from 'react-hook-form'; import { UseFormReturn } from 'react-hook-form'; import { useFormState } from 'react-hook-form'; import { User } from 'oidc-client-ts'; import { UserManager } from 'oidc-client-ts'; import { UserManagerEvents } from 'oidc-client-ts'; import { UserManagerSettings } from 'oidc-client-ts'; import { useWatch } from 'react-hook-form'; import { VariantProps } from 'class-variance-authority'; import { WritableDraft } from 'immer'; export declare const accessibilityTools: UseBoundStore, "setState"> & { setState(partial: Local_DTO_2.AccessibilityToolsStore | Partial | ((state: Local_DTO_2.AccessibilityToolsStore) => Local_DTO_2.AccessibilityToolsStore | Partial), replace?: boolean | undefined, action?: A | undefined): void; }, "setState"> & { setState(nextStateOrUpdater: Local_DTO_2.AccessibilityToolsStore | Partial | ((state: WritableDraft) => void), shouldReplace?: boolean | undefined, action?: string | { type: string; } | undefined): void; }>; export declare const Accordion: React_2.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React_2.RefAttributes>; export declare const AccordionContent: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const AccordionItem: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const AccordionTrigger: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; declare type Action = { type: ActionType['ADD_TOAST']; toast: ToasterToast; } | { type: ActionType['UPDATE_TOAST']; toast: Partial; } | { type: ActionType['DISMISS_TOAST']; toastId?: ToasterToast['id']; } | { type: ActionType['REMOVE_TOAST']; toastId?: ToasterToast['id']; }; declare type Action_2 = { type: 'INITIALISED' | 'USER_LOADED'; user: User | null; } | { type: 'USER_UNLOADED'; } | { type: 'USER_SIGNED_OUT'; } | { type: 'NAVIGATOR_INIT'; method: NonNullable; } | { type: 'NAVIGATOR_CLOSE'; } | { type: 'ERROR'; error: Error; }; export declare const ActionLoader: () => JSX_2.Element; declare type ActionType = typeof actionTypes; declare const actionTypes: { readonly ADD_TOAST: "ADD_TOAST"; readonly UPDATE_TOAST: "UPDATE_TOAST"; readonly DISMISS_TOAST: "DISMISS_TOAST"; readonly REMOVE_TOAST: "REMOVE_TOAST"; }; export declare const Alert: React_2.ForwardRefExoticComponent & VariantProps<(props?: ({ variant?: "default" | "outline" | "ghost" | null | undefined; colors?: "default" | "primary" | "secondary" | "error" | "warning" | "info" | null | undefined; } & ClassProp) | undefined) => string> & React_2.RefAttributes>; export declare const AlertDescription: React_2.ForwardRefExoticComponent & React_2.RefAttributes>; export declare const AlertDialog: React_2.FC; export declare const AlertDialogAction: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const AlertDialogCancel: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const AlertDialogContent: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const AlertDialogDescription: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const AlertDialogFooter: { ({ className, ...props }: React_2.HTMLAttributes): JSX_2.Element; displayName: string; }; export declare const AlertDialogHeader: { ({ className, ...props }: React_2.HTMLAttributes): JSX_2.Element; displayName: string; }; export declare const AlertDialogOverlay: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const AlertDialogPortal: React_2.FC; export declare const AlertDialogTitle: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const AlertDialogTrigger: React_2.ForwardRefExoticComponent>; export declare const AlertTitle: React_2.ForwardRefExoticComponent & React_2.RefAttributes>; declare type AllowedElements = Extract; declare type AllowedElements_2 = Extract; /** * @public */ export declare const AuthContext: default_2.Context; /** * @public */ export declare interface AuthContextProps extends AuthState { /** * UserManager functions. See [UserManager](https://github.com/authts/oidc-client-ts) for more details. */ readonly settings: UserManagerSettings; readonly events: UserManagerEvents; clearStaleState(): Promise; removeUser(): Promise; signinPopup(args?: SigninPopupArgs): Promise; signinSilent(args?: SigninSilentArgs): Promise; signinRedirect(args?: SigninRedirectArgs): Promise; signinResourceOwnerCredentials(args: SigninResourceOwnerCredentialsArgs): Promise; signoutRedirect(args?: SignoutRedirectArgs): Promise; signoutPopup(args?: SignoutPopupArgs): Promise; signoutSilent(args?: SignoutSilentArgs): Promise; querySessionStatus(args?: QuerySessionStatusArgs): Promise; revokeTokens(types?: RevokeTokensTypes): Promise; startSilentRenew(): void; stopSilentRenew(): void; } /** * Provides the AuthContext to its child components. * * @public */ export declare const AuthProvider: (props: AuthProviderProps) => JSX.Element; /** * @public */ export declare interface AuthProviderBaseProps { /** * The child nodes your Provider has wrapped */ children?: default_2.ReactNode; /** * On sign in callback hook. Can be a async function. * Here you can remove the code and state parameters from the url when you are redirected from the authorize page. * * ```jsx * const onSigninCallback = (_user: User | void): void => { * window.history.replaceState( * {}, * document.title, * window.location.pathname * ) * } * ``` */ onSigninCallback?: (user: User | void) => Promise | void; /** * By default, if the page url has code/state params, this provider will call automatically the `userManager.signinCallback`. * In some cases the code might be for something else (another OAuth SDK perhaps). In these * instances you can instruct the client to ignore them. * * ```jsx * * ``` */ skipSigninCallback?: boolean; /** * Match the redirect uri used for logout (e.g. `post_logout_redirect_uri`) * This provider will then call automatically the `userManager.signoutCallback`. * * HINT: * Do not call `userManager.signoutRedirect()` within a `React.useEffect`, otherwise the * logout might be unsuccessful. * * ```jsx * { * window && * (window.location.href === args.post_logout_redirect_uri); * }} * ``` */ matchSignoutCallback?: (args: UserManagerSettings) => boolean; /** * On sign out callback hook. Can be a async function. * Here you can change the url after the user is signed out. * When using this, specifying `matchSignoutCallback` is required. * * ```jsx * const onSignoutCallback = (): void => { * // go to home after logout * window.location.pathname = "" * } * ``` */ onSignoutCallback?: () => Promise | void; /** * On remove user hook. Can be a async function. * Here you can change the url after the user is removed. * * ```jsx * const onRemoveUser = (): void => { * // go to home after logout * window.location.pathname = "" * } * ``` */ onRemoveUser?: () => Promise | void; } /** * This interface (default) is used to pass `UserManagerSettings` together with `AuthProvider` properties to the provider. * * @public */ export declare interface AuthProviderNoUserManagerProps extends AuthProviderBaseProps, UserManagerSettings { /** * Prevent this property. */ userManager?: never; } /** * @public */ export declare type AuthProviderProps = AuthProviderNoUserManagerProps | AuthProviderUserManagerProps; /** * This interface is used to pass directly a `UserManager` instance together with `AuthProvider` properties to the provider. * * @public */ export declare interface AuthProviderUserManagerProps extends AuthProviderBaseProps { /** * Allow passing a custom UserManager instance. */ userManager?: UserManager; } export declare class AuthService implements IAuthService { private static instance; private userManager; private config; user?: User | null; isLoading: boolean; isAuthenticated: boolean; error?: Error; private constructor(); static getInstance(config: OIDCConfig): AuthService; private setupEventListeners; hasAuthParams(location?: Location): boolean; signin(): Promise; completeSignIn(): Promise; getUser(): Promise; /** * function to call another url to kill opend session with 'sso service' */ clearSession(): Promise; signout: (redirectUrl?: string) => Promise; } /** * The auth state which, when combined with the auth methods, make up the return object of the `useAuth` hook. * * @public */ export declare interface AuthState { /** * See [User](https://authts.github.io/oidc-client-ts/classes/User.html) for more details. */ user?: User | null; /** * True when the library has been initialized and no navigator request is in progress. */ isLoading: boolean; /** * True while the user has a valid access token. */ isAuthenticated: boolean; /** * Tracks the status of most recent signin/signout request method. */ activeNavigator?: 'signinRedirect' | 'signinResourceOwnerCredentials' | 'signinPopup' | 'signinSilent' | 'signoutRedirect' | 'signoutPopup' | 'signoutSilent'; /** * Was there a signin or silent renew error? */ error?: Error; } export declare const authStore: UseBoundStore, "setState"> & { setState(partial: Local_DTO_2.AuthStore | Partial | ((state: Local_DTO_2.AuthStore) => Local_DTO_2.AuthStore | Partial), replace?: boolean | undefined, action?: A | undefined): void; }, "setState"> & { setState(nextStateOrUpdater: Local_DTO_2.AuthStore | Partial | ((state: WritableDraft) => void), shouldReplace?: boolean | undefined, action?: string | { type: string; } | undefined): void; }>; export declare const Avatar: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const AvatarFallback: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const AvatarImage: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare function Badge({ className, variant, size, rounded, colors, disabled, ...props }: BadgeProps): JSX_2.Element; export declare interface BadgeProps extends React_2.HTMLAttributes, VariantProps { } export declare const badgeVariants: (props?: ({ variant?: "default" | "outline" | "ghost" | null | undefined; size?: "default" | "sm" | null | undefined; rounded?: "full" | "default" | null | undefined; colors?: "default" | "primary" | "secondary" | "tertiary" | "error" | "warning" | "success" | "info" | "gray" | null | undefined; disabled?: boolean | null | undefined; } & ClassProp) | undefined) => string; export declare const Breadcrumb: React_2.ForwardRefExoticComponent, HTMLElement>, "ref"> & { separator?: React_2.ReactNode; } & React_2.RefAttributes>; export declare const BreadcrumbEllipsis: { ({ className, ...props }: React_2.ComponentProps<"span">): JSX_2.Element; displayName: string; }; export declare const BreadcrumbItem: React_2.ForwardRefExoticComponent, HTMLLIElement>, "ref"> & React_2.RefAttributes>; export declare const BreadcrumbLink: React_2.ForwardRefExoticComponent, HTMLAnchorElement>, "ref"> & { asChild?: boolean; style?: React_2.CSSProperties; } & React_2.RefAttributes>; export declare const BreadcrumbList: React_2.ForwardRefExoticComponent, HTMLOListElement>, "ref"> & React_2.RefAttributes>; export declare const BreadcrumbPage: React_2.ForwardRefExoticComponent, HTMLSpanElement>, "ref"> & React_2.RefAttributes>; export declare const BreadcrumbSeparator: { ({ children, className, ...props }: React_2.ComponentProps<"li">): JSX_2.Element; displayName: string; }; export declare const Button: React_2.ForwardRefExoticComponent>; export declare interface ButtonProps extends React_2.ButtonHTMLAttributes, VariantProps { asChild?: boolean; } declare interface ButtonPropsExtend extends ButtonProps { isLoading?: boolean; isForm?: boolean; } export declare const buttonVariants: (props?: ({ variant?: "link" | "default" | "outline" | "ghost" | null | undefined; size?: "default" | "sm" | "icon" | "icon-sm" | null | undefined; rounded?: "full" | "default" | null | undefined; colors?: "default" | "primary" | "secondary" | "tertiary" | "error" | "warning" | "success" | "info" | "gray" | null | undefined; } & ClassProp) | undefined) => string; export declare function Calendar({ ishijri, lang, ...props }: { ishijri?: boolean; lang?: 'ar' | 'en'; } & DateCalendarProps): JSX_2.Element; export declare namespace Calendar { var displayName: string; } export declare const Card: React_2.ForwardRefExoticComponent & { isClickable?: boolean; } & React_2.RefAttributes>; export declare const CardContent: React_2.ForwardRefExoticComponent & React_2.RefAttributes>; export declare const CardDescription: React_2.ForwardRefExoticComponent & React_2.RefAttributes>; export declare const CardFooter: React_2.ForwardRefExoticComponent & React_2.RefAttributes>; export declare const CardHeader: React_2.ForwardRefExoticComponent & React_2.RefAttributes>; export declare const CardTitle: React_2.ForwardRefExoticComponent & React_2.RefAttributes>; export declare const Checkbox: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare function cn(...inputs: ClassValue[]): string; export declare const Collapsible: React_2.ForwardRefExoticComponent>; export declare const CollapsibleContent: React_2.ForwardRefExoticComponent>; export declare const CollapsibleTrigger: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export { ColumnDef } export declare const Combobox: default_2.FC; export declare const ComboboxContent: default_2.ForwardRefExoticComponent & default_2.RefAttributes>; export declare const ComboboxControl: <_, T>({ options, optionLabel, placeholder, isLoading, optionValue, onChange, value, triggerProps, ...rest }: Props) => JSX_2.Element; export declare const ComboboxControlNoForm: <_, T>({ options, optionLabel, placeholder, isLoading, optionValue, onChange, value, triggerProps, isDate, disabledOption, ...rest }: Props) => JSX_2.Element; export declare const ComboboxEmpty: default_2.ForwardRefExoticComponent & default_2.RefAttributes, "ref"> & default_2.RefAttributes>; export declare const ComboboxGroup: default_2.ForwardRefExoticComponent, "value" | "heading"> & { heading?: default_2.ReactNode; value?: string; forceMount?: boolean; } & default_2.RefAttributes, "ref"> & default_2.RefAttributes, "ref"> & default_2.RefAttributes>; export declare const ComboboxInput: default_2.ForwardRefExoticComponent, "type" | "value" | "onChange"> & { value?: string; onValueChange?: (search: string) => void; } & default_2.RefAttributes, "ref"> & default_2.RefAttributes>; export declare const ComboboxItem: default_2.ForwardRefExoticComponent, "disabled" | "value" | "onSelect"> & { disabled?: boolean; onSelect?: (value: string) => void; value?: string; forceMount?: boolean; } & default_2.RefAttributes, "ref"> & default_2.RefAttributes>; export declare const ComboboxTrigger: default_2.ForwardRefExoticComponent>; export declare const Command: React_2.ForwardRefExoticComponent & { label?: string; shouldFilter?: boolean; filter?: (value: string, search: string) => number; defaultValue?: string; value?: string; onValueChange?: (value: string) => void; loop?: boolean; vimBindings?: boolean; } & React_2.RefAttributes, "ref"> & React_2.RefAttributes>; export declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => JSX_2.Element; declare interface CommandDialogProps extends DialogProps { } export declare const CommandEmpty: React_2.ForwardRefExoticComponent & React_2.RefAttributes, "ref"> & React_2.RefAttributes>; export declare const CommandGroup: React_2.ForwardRefExoticComponent, "value" | "heading"> & { heading?: React_2.ReactNode; value?: string; forceMount?: boolean; } & React_2.RefAttributes, "ref"> & React_2.RefAttributes>; export declare const CommandInput: React_2.ForwardRefExoticComponent, "type" | "value" | "onChange"> & { value?: string; onValueChange?: (search: string) => void; } & React_2.RefAttributes, "ref"> & React_2.RefAttributes>; export declare const CommandItem: React_2.ForwardRefExoticComponent, "disabled" | "value" | "onSelect"> & { disabled?: boolean; onSelect?: (value: string) => void; value?: string; forceMount?: boolean; } & React_2.RefAttributes, "ref"> & React_2.RefAttributes>; export declare const CommandList: React_2.ForwardRefExoticComponent & React_2.RefAttributes, "ref"> & React_2.RefAttributes>; export declare const CommandSeparator: React_2.ForwardRefExoticComponent & { alwaysRender?: boolean; } & React_2.RefAttributes, "ref"> & React_2.RefAttributes>; export declare const CommandShortcut: { ({ className, ...props }: React_2.HTMLAttributes): JSX_2.Element; displayName: string; }; export declare const createIdentityConfig: (config: OIDCConfig) => { authority: string; client_id: string; client_secret: string; redirect_uri: string; login: string; automaticSilentRenew: boolean; loadUserInfo: boolean; silent_redirect_uri: string; post_logout_redirect_uri: string; audience: string; responseType: string; grantType: string; scope: string; webAuthResponseType: string; }; export declare const createMetadataConfig: (authUrl: string, jwks: string) => { issuer: string; jwks_uri: string; authorization_endpoint: string; token_endpoint: string; userinfo_endpoint: string; end_session_endpoint: string; check_session_iframe: string; revocation_endpoint: string; introspection_endpoint: string; }; export declare function DataTable({ columns, data, loading, NoDataComponent, itemsPerPage, hasPagination, onClickRow, isFirstRowSelected, ...rest }: DataTableProps): JSX_2.Element | null; declare interface DataTableProps { columns: ColumnDef[]; data: TData[]; loading: boolean; NoDataComponent?: JSX.Element; onPageChange?: (number: number) => void; totalItems?: number; pageNumber?: number; itemsPerPage?: number; setLimit?: (number: number) => void; hasPagination?: boolean; isFirstRowSelected?: boolean; onClickRow?: (data: Row) => void; } export declare const dateFormatter: ({ date, format, isHijri, hasHijriFormat, }: { date: string | Date | undefined; format: "short" | "mid" | "long"; isHijri?: boolean; hasHijriFormat?: boolean; }) => string; export declare const DatePicker: ({ placeholder, value, onChange, lang, rounded, defaultToToday, ...rest }: Props_3 & Omit, "value">) => JSX_2.Element; export declare function debounce void>(func: T, wait: number): T; export declare const Description: default_2.ForwardRefExoticComponent & { children?: default_2.ReactNode | undefined; } & default_2.RefAttributes>; export declare const DescriptionItem: default_2.ForwardRefExoticComponent & { title: string; icon?: GoogleMaterialIcon; } & VariantProps<(props?: ({ variant?: "default" | "list" | null | undefined; size?: "default" | "sm" | null | undefined; orientation?: "vertical" | "horizental" | null | undefined; lastItem?: boolean | null | undefined; stretch?: boolean | null | undefined; padding?: "none" | "default" | null | undefined; } & ClassProp) | undefined) => string> & { children?: default_2.ReactNode | undefined; } & default_2.RefAttributes>; export declare type DescriptionProps = { title: string; icon?: GoogleMaterialIcon; } & VariantProps; export declare const DevtoolsMiddlewares: (f: StateCreator, devtoolsOptions?: DevtoolsOptions) => StateCreator; export declare const Dialog: React_2.FC; export declare const DialogContent: React_2.ForwardRefExoticComponent, "ref"> & { ignoreInteractOutside?: boolean; hideOverlay?: boolean; } & React_2.RefAttributes>; export declare const DialogDescription: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const DialogFooter: { ({ className, ...props }: React_2.HTMLAttributes): JSX_2.Element; displayName: string; }; export declare const DialogHeader: { ({ className, ...props }: React_2.HTMLAttributes): JSX_2.Element; displayName: string; }; export declare const DialogOverlay: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const DialogPortal: React_2.FC; export declare const DialogTitle: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const DialogTrigger: React_2.ForwardRefExoticComponent>; declare const dlVariants: (props?: ({ variant?: "default" | "list" | null | undefined; size?: "default" | "sm" | null | undefined; orientation?: "vertical" | "horizental" | null | undefined; lastItem?: boolean | null | undefined; stretch?: boolean | null | undefined; padding?: "none" | "default" | null | undefined; } & ClassProp) | undefined) => string; export declare function DraggableGrid({ configs, isEditMode, componentMap, onConfigChange, onOrderChange, onSave, onCancel, onReset, onAdd, isSidePanelShown, isSaving, }: Readonly): JSX_2.Element; declare interface DraggableGridProps { configs: WidgetConfig[]; isEditMode: boolean; componentMap: Record>; onConfigChange: (changes: Partial) => void; onOrderChange: (newConfigs: WidgetConfig[]) => void; onSave?: () => void; onCancel?: () => void; onReset?: () => void; onAdd?: () => void; isSidePanelShown?: boolean; isSaving?: boolean; } export declare const DropdownMenu: React_2.FC; export declare const DropdownMenuCheckboxItem: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const DropdownMenuContent: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const DropdownMenuGroup: React_2.ForwardRefExoticComponent>; export declare const DropdownMenuItem: React_2.ForwardRefExoticComponent, "ref"> & { inset?: boolean; } & React_2.RefAttributes>; export declare const DropdownMenuLabel: React_2.ForwardRefExoticComponent, "ref"> & { inset?: boolean; } & React_2.RefAttributes>; export declare const DropdownMenuPortal: React_2.FC; export declare const DropdownMenuRadioGroup: React_2.ForwardRefExoticComponent>; export declare const DropdownMenuRadioItem: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const DropdownMenuSeparator: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const DropdownMenuShortcut: { ({ className, ...props }: React_2.HTMLAttributes): JSX_2.Element; displayName: string; }; export declare const DropdownMenuSub: React_2.FC; export declare const DropdownMenuSubContent: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const DropdownMenuSubTrigger: React_2.ForwardRefExoticComponent, "ref"> & { inset?: boolean; } & React_2.RefAttributes>; export declare const DropdownMenuTrigger: React_2.ForwardRefExoticComponent>; export declare const Emoji: ({ variant, size, disabled, className, ...props }: EmojiProps) => JSX_2.Element; export declare interface EmojiProps extends React.SVGProps, VariantProps { } declare const EmojiVariants: (props?: ({ variant?: "awful" | "bad" | "ok" | "good" | "great" | null | undefined; size?: "default" | null | undefined; disabled?: boolean | null | undefined; } & ClassProp) | undefined) => string; export declare const EmptySection: default_2.FC; export declare interface EmptySectionProps extends VariantProps { className?: string; title?: string; message?: string; icon?: default_2.ReactNode; children?: default_2.ReactNode; bordered?: boolean; } declare const emptySectionVariants: (props?: ({ layout?: "horizontal" | "vertical" | null | undefined; background?: "gray" | "transparent" | "white" | null | undefined; } & ClassProp) | undefined) => string; declare interface Extra { startAdornment?: React_2.ReactNode | string; endAdornment?: React_2.ReactNode | string; } declare interface Extra_2 { startAdornment?: React_2.ReactNode | string; endAdornment?: React_2.ReactNode | string; } export { FieldValues } export declare const Form: (props: FormProviderProps & { formId?: string; }) => JSX_2.Element; export declare const formatter: (dir: string) => Intl.DateTimeFormat; export declare const formatterTime: (dir: string) => Intl.DateTimeFormat; export declare const FormControl: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const FormDescription: React_2.ForwardRefExoticComponent & React_2.RefAttributes>; export declare const FormField: = FieldPath>({ ...props }: ControllerProps) => JSX_2.Element; export declare const FormItem: React_2.ForwardRefExoticComponent & React_2.RefAttributes>; export declare const FormLabel: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const FormMessage: React_2.ForwardRefExoticComponent & React_2.RefAttributes>; export declare const Grid: default_2.FC; export declare const GridItem: default_2.FC; declare const gridItemColVariants: (props?: ({ base?: 1 | 2 | 3 | 6 | 7 | 12 | 4 | 5 | 10 | 11 | 9 | 8 | null | undefined; sm?: 1 | 2 | 3 | 6 | 7 | 12 | 4 | 5 | 10 | 11 | 9 | 8 | null | undefined; md?: 1 | 2 | 3 | 6 | 7 | 12 | 4 | 5 | 10 | 11 | 9 | 8 | null | undefined; lg?: 1 | 2 | 3 | 6 | 7 | 12 | 4 | 5 | 10 | 11 | 9 | 8 | null | undefined; xl?: 1 | 2 | 3 | 6 | 7 | 12 | 4 | 5 | 10 | 11 | 9 | 8 | null | undefined; '2xl'?: 1 | 2 | 3 | 6 | 7 | 12 | 4 | 5 | 10 | 11 | 9 | 8 | null | undefined; } & ClassProp) | undefined) => string; declare interface GridItemProps extends default_2.HTMLAttributes { columns?: VariantProps | VariantProps['base']; children?: default_2.ReactNode[] | default_2.ReactNode; } declare type GridProps = default_2.ComponentPropsWithoutRef<'div'> & VariantProps; declare const gridStyles: (props?: ({ cols?: 1 | 2 | 3 | 6 | 7 | 12 | 4 | 5 | 10 | 11 | 9 | 8 | null | undefined; gap?: "none" | 1 | 2 | 3 | 6 | 7 | 12 | 4 | 5 | 10 | 11 | 9 | 8 | null | undefined; gapX?: "none" | 1 | 2 | 3 | 6 | 7 | 12 | 4 | 5 | 10 | 11 | 9 | 8 | null | undefined; gapY?: "none" | 1 | 2 | 3 | 6 | 7 | 12 | 4 | 5 | 10 | 11 | 9 | 8 | null | undefined; autoFlow?: "col" | "row" | "dense" | "rowDense" | "colDense" | null | undefined; alignItems?: "center" | "end" | "start" | "stretch" | null | undefined; justifyItems?: "center" | "end" | "start" | "stretch" | null | undefined; alignContent?: "center" | "end" | "start" | "between" | "around" | "evenly" | null | undefined; justifyContent?: "center" | "end" | "start" | "between" | "around" | "evenly" | null | undefined; } & ClassProp) | undefined) => string; export declare const handleArabicNumbers: (e: React.ChangeEvent, watch: any) => ChangeEvent; /** * @public */ export declare const hasAuthParams: (location?: Location) => boolean; export declare const Heading: default_2.ForwardRefExoticComponent<{ as?: AllowedElements | undefined; asChild?: boolean; children: ReactNode; } & Omit, HTMLHeadingElement>, "ref"> & default_2.RefAttributes<"symbol" | "object" | default_2.ComponentClass | default_2.FunctionComponent | "search" | "big" | "link" | "small" | "sub" | "sup" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "center" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "main" | "map" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "slot" | "script" | "section" | "select" | "source" | "span" | "strong" | "style" | "summary" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "filter" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view">>; /** * @public */ export declare interface IAuthService { /** * See [User](https://authts.github.io/oidc-client-ts/classes/User.html) for more details. */ user?: User | null; /** * True when the library has been initialized and no navigator request is in progress. */ isLoading: boolean; /** * True while the user has a valid access token. */ isAuthenticated: boolean; /** * Was there a signin or silent renew error? */ error?: Error; hasAuthParams(): boolean; getUser(): Promise; signin(): Promise; completeSignIn(): Promise; signout(): Promise; clearSession(): Promise; } /** * The initial auth state. */ export declare const initialAuthState: AuthState; export declare const Input: React_2.ForwardRefExoticComponent>; export declare const InputOTP: React_2.ForwardRefExoticComponent<(Omit, "maxLength" | "value" | "onChange" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & { value?: string; onChange?: (newValue: string) => unknown; maxLength: number; textAlign?: "left" | "center" | "right"; onComplete?: (...args: any[]) => unknown; pushPasswordManagerStrategy?: "increase-width" | "none"; pasteTransformer?: (pasted: string) => string; containerClassName?: string; noScriptCSSFallback?: string | null; } & { render: (props: RenderProps) => React_2.ReactNode; children?: never; } & React_2.RefAttributes, "ref"> | Omit, "maxLength" | "value" | "onChange" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & { value?: string; onChange?: (newValue: string) => unknown; maxLength: number; textAlign?: "left" | "center" | "right"; onComplete?: (...args: any[]) => unknown; pushPasswordManagerStrategy?: "increase-width" | "none"; pasteTransformer?: (pasted: string) => string; containerClassName?: string; noScriptCSSFallback?: string | null; } & { render?: never; children: React_2.ReactNode; } & React_2.RefAttributes, "ref">) & React_2.RefAttributes>; export declare const InputOTPGroup: React_2.ForwardRefExoticComponent, HTMLDivElement>, "ref"> & React_2.RefAttributes>; export declare const InputOTPSeparator: React_2.ForwardRefExoticComponent, HTMLDivElement>, "ref"> & React_2.RefAttributes>; export declare const InputOTPSlot: React_2.ForwardRefExoticComponent, HTMLDivElement>, "ref"> & React_2.RefAttributes>; export declare interface InputProps extends React_2.InputHTMLAttributes, VariantProps, Extra { } declare const inputVariants: (props?: ({ variant?: "default" | "outline" | null | undefined; rounded?: "full" | "default" | null | undefined; colors?: "default" | "success" | "destructive" | null | undefined; } & ClassProp) | undefined) => string; export declare const Label: React_2.ForwardRefExoticComponent, "ref"> & VariantProps<(props?: ClassProp | undefined) => string> & React_2.RefAttributes>; export declare const langRegex: { enRegex: RegExp; arRegex: RegExp; bothArAndEnRegexonlyLetters: RegExp; bothArAndEnRegexonlyLettersAndNumbers: RegExp; enletterAndNumbersRegex: RegExp; mobileNumber: RegExp; TelPhone: RegExp; nationalId: RegExp; nationalOrResidentId: RegExp; nonSaudianNationalId: RegExp; tags: RegExp; specialCharcter: RegExp; arSpaceRegex: RegExp; }; declare type LegendTotalType = string[]; export declare const LinesPerPage: ({ value, onChange }: { value: number; onChange: (value: string) => void; }) => JSX_2.Element; declare namespace Local_DTO_2 { type User = { ProfilePicture?: string; Id: string; roles: UserTypes[]; defaultRole?: UserTypes; personIdentifier?: string; refIdentificationTypeCode?: string; refIdentificationTypeName?: string; birthdate?: string; firstName: string; secondName: string; thridName: string; lastName: string; refSexName?: string; refSexCode?: string; refNationalityCountryCode?: string; refNationalityCountryName?: string; email: string; ssoEmail?: string; mobile?: string; }; type AuthStore = { accessToken: string | undefined; refreshToken: string | undefined; isAuthenticated: boolean | undefined; user: User; nationalId?: string | null; sessionExpired?: boolean; login: (nationalId: string) => void; setUser: (user: Partial) => void; updateUser: (user: Partial) => void; logout: () => void; setDefaultRole: (defaultRole?: UserTypes) => void; setExpireSession: () => void; }; interface ServiceCategory { CategoryName: string; Link: string; Id: string; Icon: (props: default_2.SVGProps) => default_2.JSX.Element; isActive: boolean; } interface MenuList { Category: string; ClassName?: string | null; ShortName?: string | null; Id: string; Services?: { Name: string; Value: string; Id: string; Categories?: ServiceCategory[]; }[]; } interface NavigationMenuProps { menuList: MenuList[]; } interface NavigationMenuMobileProps extends NavigationMenuProps { isOpen: boolean; onMenuClose: () => void; UserLinks: UserLink[]; changeLang: (lang: 'ar' | 'en') => void; logout: () => void; isAuthenticated: boolean; user: { Name: string; ProfilePicture?: string; }; isUP?: boolean; } interface LabelProps { isRequired?: boolean; } interface TopMenuProps { changeLang: (lang: 'ar' | 'en') => void; isAuthenticated: boolean; user: { Name: string; ProfilePicture?: string; }; logout: () => void; navigateTo?: (pathname: string) => void; currenLocation?: string; isUP?: boolean; } type AccessibilityToolsStore = { isActive: boolean; toggleColors: () => void; fontSize: string; isMax: boolean; isMin: boolean; isDesktop: boolean; increaseSize: () => void; decreaseSize: () => void; defaultSize: () => void; }; interface UserLink { Name: string; Link?: string; onClick?: () => void; Id?: number; Icon: (props: default_2.SVGProps) => default_2.JSX.Element; } interface UserInfoProps { UserLinks: UserLink[]; user: { Name: string; ProfilePicture?: string; }; changeLang: (lang: 'ar' | 'en') => void; logout: () => void; isUP?: boolean; } interface Crumb { crumb: (data: any) => ReactNode | string; } interface TextareaProps extends LabelProps { label: string; control: any; name: string; placeholder?: string; maxLength?: number; } interface DropdownProps extends TextareaProps { options: { label: string; value: string | number; }[]; disabled?: boolean; } interface InputProps extends TextareaProps { isNumber?: boolean; watch?: any; } type useLanguageStore = { lang: string; dir: 'rtl' | 'ltr'; changeLang: (lang: 'ar' | 'en') => void; }; } export declare function MultiSelect({ placeholder, options, selectedValues, onChange, disabled, size, dataTestId, rounded, }: MultiSelectProps): JSX_2.Element; export declare interface MultiSelectProps { placeholder: string; options: { label: string; value: T; icon?: ComponentType<{ className?: string; }>; }[]; selectedValues: T[]; onChange: (values: T[]) => void; disabled?: boolean; size?: 'sm' | 'default'; dataTestId?: string; rounded?: 'default' | 'full'; } export declare const NavigationMenu: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const NavigationMenuContent: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const NavigationMenuIndicator: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const NavigationMenuItem: React_2.ForwardRefExoticComponent>; export declare const NavigationMenuLink: React_2.ForwardRefExoticComponent>; export declare const NavigationMenuList: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const NavigationMenuTrigger: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const navigationMenuTriggerStyle: (props?: ClassProp | undefined) => string; export declare const NavigationMenuViewport: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare interface OIDCConfig { clientId: string; clientSecret: string; baseUrl: string; authUrl: string; jwks?: string; oauth20LogoutUrl: string; } /** * Handles how that state changes in the `useAuth` hook. */ export declare const oidcReducer: (state: AuthState, action: Action_2) => AuthState; export declare const PageLoader: () => JSX_2.Element; export declare const Pagination: ({ totalItems, onPageChange, selectedPage, className, withoutText, itemsPerPage }: Props_2) => JSX_2.Element | null; export declare const PaginationDescription: ({ currentPage, totalCount, limit }: { currentPage: number; totalCount: number; limit: number; }) => JSX_2.Element; export declare const PieChart: ({ seriesData, title, tooltipFormatter, chartOptions, width, height, enableTooltip, center }: PieChartProps) => JSX_2.Element; export declare type PieChartProps = { seriesData: SeriesType; legendTotal?: LegendTotalType; title?: TotalAmount; tooltipFormatter?: () => string; width: number; height: number; chartOptions?: ChartOptions; enableTooltip?: boolean; center?: string[]; }; export declare const Popover: React_2.FC; export declare const PopoverArrow: React_2.ForwardRefExoticComponent>; export declare const PopoverClose: React_2.ForwardRefExoticComponent>; export declare const PopoverContent: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const PopoverTrigger: React_2.ForwardRefExoticComponent>; export declare const Progress: React_2.ForwardRefExoticComponent>; declare interface ProgressProps extends React_2.ComponentPropsWithoutRef { colors?: 'bg-primary' | 'bg-secondary' | 'bg-tertiary' | 'bg-error' | 'bg-warning' | 'bg-success' | 'bg-info' | 'bg-secondary-light'; icon?: React_2.ReactNode; rounded?: boolean; } declare interface Props extends VariantProps { options?: T[]; optionLabel: keyof T; optionValue: keyof T; value: string; placeholder: string; isLoading?: boolean; onChange: (value: string) => void; triggerProps?: ButtonPropsExtend; disabled?: boolean; isDate?: boolean; disabledOption?: (option: T) => boolean; className?: string; } declare interface Props_2 { totalItems: number; onPageChange: (page: number) => void; selectedPage: number; className?: string; withoutText?: boolean; itemsPerPage?: number; } declare interface Props_3 { lang: 'ar' | 'en'; placeholder?: string | null; value: Date | string | null | undefined; onChange: (value: string) => void; rounded?: ButtonProps['rounded']; defaultToToday?: boolean; } /** * Represents the state of a query. * * @template T - The type of data being queried. */ declare type QueryState = { /** * The cached data for the query, if available. */ data?: T; /** * The current status of the query. * Can be 'idle', "pending" | "error" | "success", or any other status provided by `react-query`. */ status: QueryStatus | 'idle'; /** * Indicates if the query is currently in a pending state. * This is a custom state that can be used to differentiate between idle and pending states. */ isPending: boolean; /** * Indicates if the query is currently being fetched. * This reflects whether a network request is in progress. */ isFetching: boolean; /** * Indicates if the query has successfully fetched data. * This is true if the query has completed successfully and data is available. */ isSuccess: boolean; /** * Indicates if the query has incountered any error. */ isError: boolean; /** * The error associated with the query, if any. */ error?: unknown; /** * refetch quiery based on provided key */ refetch: () => void; }; export declare const RadioGroup: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const RadioGroupItem: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const reducer: (state: State, action: Action) => State; export declare const ScrollArea: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const ScrollBar: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const SearchInput: default_2.ForwardRefExoticComponent>; declare interface SearchInputProps { placeholder?: string; type: 'onType' | 'onButton'; validationMessage?: string; value?: string; onSearch: (value: string) => void; disabled?: boolean; debounceTime?: number; className?: string; } export declare const Select: React_2.FC; export declare const SelectContent: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const SelectGroup: React_2.ForwardRefExoticComponent>; export declare const SelectItem: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const SelectLabel: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const SelectScrollDownButton: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const SelectScrollUpButton: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const SelectSeparator: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const SelectTrigger: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const SelectValue: React_2.ForwardRefExoticComponent>; export declare const Separator: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; declare type seriesDataType = Omit & { y: number; }; declare type SeriesType = { name: string; data: seriesDataType[]; colors?: string[]; innerSize?: string; }[]; export declare const setLanguage: (lang: string) => void; export declare const Sheet: default_2.FC; export declare const SheetBody: default_2.ForwardRefExoticComponent & default_2.RefAttributes>; export declare const SheetClose: default_2.ForwardRefExoticComponent>; export declare const SheetContent: default_2.ForwardRefExoticComponent>; export declare interface SheetContentProps extends default_2.ComponentPropsWithoutRef, VariantProps { ignoreInteractOutside?: boolean; hideOverlay?: boolean; } export declare const SheetDescription: default_2.ForwardRefExoticComponent, "ref"> & default_2.RefAttributes>; export declare const SheetFooter: { ({ className, ...props }: default_2.HTMLAttributes): JSX_2.Element; displayName: string; }; export declare const SheetForm: default_2.FC; export declare const SheetFormBody: default_2.ForwardRefExoticComponent & default_2.RefAttributes>; export declare const SheetFormContent: default_2.ForwardRefExoticComponent & default_2.RefAttributes>; export declare const SheetFormFooter: { ({ className, title, ...props }: default_2.ComponentPropsWithoutRef): JSX_2.Element; displayName: string; }; export declare const SheetFormHeader: { ({ className, title, ...props }: default_2.ComponentPropsWithoutRef): JSX_2.Element; displayName: string; }; export declare const SheetFormTrigger: default_2.ForwardRefExoticComponent>; export declare const SheetHeader: { ({ className, title, children, ...props }: default_2.HTMLAttributes): JSX_2.Element; displayName: string; }; export declare const SheetOverlay: default_2.ForwardRefExoticComponent, "ref"> & default_2.RefAttributes>; export declare const SheetPortal: default_2.FC; export declare const SheetTitle: default_2.ForwardRefExoticComponent, "ref"> & default_2.RefAttributes>; export declare const SheetTrigger: default_2.ForwardRefExoticComponent>; declare const sheetVariants: (props?: ({ side?: "center" | "top" | "right" | "bottom" | "left" | null | undefined; } & ClassProp) | undefined) => string; export declare const ShouldRender: FC; declare type ShouldRenderProps = { children: ReactNode; shouldRender?: boolean; other?: ReactNode; }; export declare const Sidebar: React_2.ForwardRefExoticComponent & React_2.HTMLAttributes & { side?: "left" | "right"; variant?: "sidebar" | "floating" | "inset"; collapsible?: "offcanvas" | "icon" | "none"; }, "ref"> & React_2.RefAttributes>; export declare const SidebarContent: React_2.ForwardRefExoticComponent, HTMLDivElement>, "ref"> & React_2.RefAttributes>; declare type SidebarContext = { state: 'expanded' | 'collapsed'; open: boolean; setOpen: (open: boolean) => void; openMobile: boolean; setOpenMobile: (open: boolean) => void; isMobile: boolean; toggleSidebar: () => void; }; declare const SidebarContext: React_2.Context; export declare const SidebarFooter: React_2.ForwardRefExoticComponent, HTMLDivElement>, "ref"> & React_2.RefAttributes>; export declare const SidebarGroup: React_2.ForwardRefExoticComponent, HTMLDivElement>, "ref"> & React_2.RefAttributes>; export declare const SidebarGroupAction: React_2.ForwardRefExoticComponent & React_2.ButtonHTMLAttributes & { asChild?: boolean; }, "ref"> & React_2.RefAttributes>; export declare const SidebarGroupContent: React_2.ForwardRefExoticComponent, HTMLDivElement>, "ref"> & React_2.RefAttributes>; export declare const SidebarGroupLabel: React_2.ForwardRefExoticComponent & React_2.HTMLAttributes & { asChild?: boolean; }, "ref"> & React_2.RefAttributes>; export declare const SidebarHeader: React_2.ForwardRefExoticComponent, HTMLDivElement>, "ref"> & React_2.RefAttributes>; export declare const SidebarInput: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const SidebarInset: React_2.ForwardRefExoticComponent, HTMLElement>, "ref"> & React_2.RefAttributes>; export declare const SidebarMenu: React_2.ForwardRefExoticComponent, HTMLUListElement>, "ref"> & React_2.RefAttributes>; export declare const SidebarMenuAction: React_2.ForwardRefExoticComponent & React_2.ButtonHTMLAttributes & { asChild?: boolean; showOnHover?: boolean; }, "ref"> & React_2.RefAttributes>; export declare const SidebarMenuBadge: React_2.ForwardRefExoticComponent, HTMLDivElement>, "ref"> & React_2.RefAttributes>; export declare const SidebarMenuButton: React_2.ForwardRefExoticComponent & React_2.ButtonHTMLAttributes & { asChild?: boolean; isActive?: boolean; tooltip?: string | React_2.ComponentProps; } & VariantProps<(props?: ({ variant?: "default" | "outline" | null | undefined; size?: "default" | "sm" | "lg" | null | undefined; } & ClassProp) | undefined) => string>, "ref"> & React_2.RefAttributes>; export declare const SidebarMenuItem: React_2.ForwardRefExoticComponent, HTMLLIElement>, "ref"> & React_2.RefAttributes>; export declare const SidebarMenuSkeleton: React_2.ForwardRefExoticComponent & React_2.HTMLAttributes & { showIcon?: boolean; }, "ref"> & React_2.RefAttributes>; export declare const SidebarMenuSub: React_2.ForwardRefExoticComponent, HTMLUListElement>, "ref"> & React_2.RefAttributes>; export declare const SidebarMenuSubButton: React_2.ForwardRefExoticComponent & React_2.AnchorHTMLAttributes & { asChild?: boolean; size?: "sm" | "md"; isActive?: boolean; }, "ref"> & React_2.RefAttributes>; export declare const SidebarMenuSubItem: React_2.ForwardRefExoticComponent, HTMLLIElement>, "ref"> & React_2.RefAttributes>; export declare const SidebarProvider: React_2.ForwardRefExoticComponent & React_2.HTMLAttributes & { defaultOpen?: boolean; open?: boolean; onOpenChange?: (open: boolean) => void; }, "ref"> & React_2.RefAttributes>; export declare const SidebarRail: React_2.ForwardRefExoticComponent, HTMLButtonElement>, "ref"> & React_2.RefAttributes>; export declare const SidebarSeparator: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes, "ref"> & React_2.RefAttributes>; export declare const SidebarTrigger: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const signinError: (error: unknown) => Error; export declare const signoutError: (error: unknown) => Error; export declare const SimpleGrid: default_2.FC; declare interface SimpleGridProps extends default_2.HTMLAttributes { /** * The minimum width of each child element. When specified, the grid will adjust its columns * to fit as many items as possible per row based on this minimum width. */ minChildWidth?: string | number; /** * The number of columns or responsive array of columns. * If `minChildWidth` is specified, this will be overridden. */ cols?: number; /** * The gap between grid items. */ gap?: string; /** * The column gap between grid items. */ gapX?: string; /** * The row gap between grid items. */ gapY?: string; } export declare function Skeleton({ className, ...props }: React.HTMLAttributes): JSX_2.Element; export declare const Slider: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const SliderPagination: ({ setCurrentPage, currentPage, totalPages, disabled }: SliderPaginationProps) => JSX_2.Element | null; export declare interface SliderPaginationProps { setCurrentPage: default_2.Dispatch>; currentPage: number; totalPages: number; disabled?: boolean; } export declare const Stack: default_2.FC; declare type StackProps = default_2.ComponentPropsWithoutRef<'div'> & VariantProps; declare const stackStyles: (props?: ({ direction?: "col" | "row" | "row-reverse" | "col-reverse" | null | undefined; gap?: "small" | "none" | 1 | 2 | 3 | 6 | 7 | 12 | 4 | 5 | 10 | 11 | "medium" | 9 | 8 | null | undefined; gapX?: "small" | "none" | 1 | 2 | 3 | 6 | 7 | 12 | 4 | 5 | 10 | 11 | "medium" | 9 | 8 | null | undefined; gapY?: "small" | "none" | 1 | 2 | 3 | 6 | 7 | 12 | 4 | 5 | 10 | 11 | "medium" | 9 | 8 | null | undefined; alignItems?: "center" | "end" | "start" | "stretch" | null | undefined; justifyItems?: "center" | "end" | "start" | "stretch" | null | undefined; alignContent?: "center" | "end" | "start" | "between" | "around" | "evenly" | null | undefined; justifyContent?: "center" | "end" | "start" | "between" | "around" | "evenly" | null | undefined; } & ClassProp) | undefined) => string; declare interface State { toasts: ToasterToast[]; } export declare const strings: LocalizedStrings< { messages: { exceedlimitedField: string; required: string; }; Shared: { soon: string; NationalId: string; ResidentID: string; Welcome: string; Login: string; Logout: string; InformationPanel: string; AccountSettings: string; Chat: string; TechnicalSupport: string; FullName: string; PersonalInformation: string; TicketInformation: string; TicketDetails: string; Title: string; Description: string; Enter: string; AddSupportingFiles: string; Send: string; Submit: string; Cancel: string; Main: string; Select: string; NotRobot: string; Search: string; Number: string; Date: string; hijriCalendar: string; male: string; female: string; submit: string; next: string; previous: string; morePages: string; Total: string; YearTitle: string; MonthTitle: string; PaginationDesc: string; LinesPerPage: string; Actions: string; ViewDetails: string; Language: string; Specify: string; ServerError: string; BackToHome: string; NoDataFound: string; showResults: string; reset: string; }; Footer: { TermsOfUse: string; PrivacyPolicy: string; InformationProtection: string; Colors: string; VoiceCommands: string; CopyRights: string; }; DragAndDrop: { SaveCustomization: string; Delete: string; Half: string; Full: string; Width: string; Show: string; AddToDashboard: string; }; } | { messages: { exceedlimitedField: string; required: string; }; Shared: { soon: string; NationalId: string; ResidentID: string; Welcome: string; Login: string; Logout: string; InformationPanel: string; AccountSettings: string; Chat: string; TechnicalSupport: string; FullName: string; PersonalInformation: string; TicketInformation: string; TicketDetails: string; Title: string; Description: string; Enter: string; AddSupportingFiles: string; Send: string; Submit: string; Cancel: string; Main: string; Select: string; NotRobot: string; Search: string; Number: string; Date: string; hijriCalendar: string; male: string; female: string; submit: string; next: string; previous: string; morePages: string; Total: string; YearTitle: string; MonthTitle: string; PaginationDesc: string; LinesPerPage: string; Actions: string; ViewDetails: string; Language: string; Specify: string; ServerError: string; BackToHome: string; NoDataFound: string; showResults: string; reset: string; }; Footer: { TermsOfUse: string; PrivacyPolicy: string; InformationProtection: string; Colors: string; VoiceCommands: string; CopyRights: string; }; DragAndDrop: { SaveCustomization: string; Delete: string; Half: string; Full: string; Width: string; Show: string; AddToDashboard: string; }; }>; export { SubmitHandler } export declare const Switch: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const Table: React_2.ForwardRefExoticComponent & React_2.RefAttributes>; export declare const TableBody: React_2.ForwardRefExoticComponent & React_2.RefAttributes>; export declare const TableCaption: React_2.ForwardRefExoticComponent & React_2.RefAttributes>; export declare const TableCell: React_2.ForwardRefExoticComponent & { isLast?: boolean; } & React_2.RefAttributes>; export declare const TableFooter: React_2.ForwardRefExoticComponent & React_2.RefAttributes>; export declare const TableHead: React_2.ForwardRefExoticComponent & React_2.RefAttributes>; export declare const TableHeader: React_2.ForwardRefExoticComponent & React_2.RefAttributes>; export declare const TableRow: React_2.ForwardRefExoticComponent & React_2.RefAttributes>; export declare const Tabs: React_2.ForwardRefExoticComponent>; export declare const TabsContent: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const TabsList: React_2.ForwardRefExoticComponent, "ref"> & VariantProps<(props?: ({ container?: "transparent" | "underline" | "filled" | null | undefined; variant?: "transparent" | "underline" | "filled" | null | undefined; } & ClassProp) | undefined) => string> & React_2.RefAttributes>; export declare const TabsTrigger: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const tabVariants: (props?: ({ container?: "transparent" | "underline" | "filled" | null | undefined; variant?: "transparent" | "underline" | "filled" | null | undefined; } & ClassProp) | undefined) => string; declare const Text_2: default_2.ForwardRefExoticComponent & default_2.RefAttributes<"symbol" | "object" | default_2.ComponentClass | default_2.FunctionComponent | "search" | "big" | "link" | "small" | "sub" | "sup" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "center" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "main" | "map" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "slot" | "script" | "section" | "select" | "source" | "span" | "strong" | "style" | "summary" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "filter" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view">>; export { Text_2 as Text } export declare const Textarea: React_2.ForwardRefExoticComponent>; export declare interface TextareaProps extends React_2.TextareaHTMLAttributes, VariantProps, Extra_2 { } declare const textAreaVariants: (props?: ({ variant?: "default" | "outline" | null | undefined; rounded?: "full" | "default" | null | undefined; colors?: "default" | "success" | "destructive" | null | undefined; } & ClassProp) | undefined) => string; declare type TextProps = { as?: T; asChild?: boolean; children: ReactNode; } & default_2.ComponentPropsWithoutRef; export declare const Toast: React_2.ForwardRefExoticComponent, "ref"> & VariantProps<(props?: ({ variant?: "default" | "success" | "destructive" | null | undefined; } & ClassProp) | undefined) => string> & React_2.RefAttributes>; export declare function toast({ ...props }: Toast_2): { id: string; dismiss: () => void; update: (props: ToasterToast) => void; }; declare type Toast_2 = Omit; export declare const ToastAction: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare type ToastActionElement = React_2.ReactElement; export declare const ToastClose: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const ToastDescription: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare function Toaster(): JSX_2.Element; export declare type ToasterToast = ToastProps & { id: string; title?: React_2.ReactNode; description?: React_2.ReactNode; action?: ToastActionElement; }; export declare type ToastProps = React_2.ComponentPropsWithoutRef; export declare const ToastProvider: React_2.FC; export declare const ToastTitle: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const ToastViewport: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const Toggle: React_2.ForwardRefExoticComponent, "ref"> & VariantProps<(props?: ({ variant?: "default" | "outline" | null | undefined; size?: "default" | "sm" | "icon" | "fit" | null | undefined; colors?: "default" | "gray" | null | undefined; } & ClassProp) | undefined) => string> & React_2.RefAttributes>; export declare const ToggleGroup: React_2.ForwardRefExoticComponent<((Omit, "ref"> | Omit, "ref">) & VariantProps<(props?: ({ variant?: "default" | "outline" | null | undefined; size?: "default" | "sm" | "icon" | "fit" | null | undefined; colors?: "default" | "gray" | null | undefined; } & ClassProp) | undefined) => string>) & React_2.RefAttributes>; export declare const ToggleGroupItem: React_2.ForwardRefExoticComponent, "ref"> & VariantProps<(props?: ({ variant?: "default" | "outline" | null | undefined; size?: "default" | "sm" | "icon" | "fit" | null | undefined; colors?: "default" | "gray" | null | undefined; } & ClassProp) | undefined) => string> & React_2.RefAttributes>; export declare const toggleVariants: (props?: ({ variant?: "default" | "outline" | null | undefined; size?: "default" | "sm" | "icon" | "fit" | null | undefined; colors?: "default" | "gray" | null | undefined; } & ClassProp) | undefined) => string; export declare const Tooltip: React_2.FC; export declare const TooltipContent: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const TooltipProvider: React_2.FC; export declare const TooltipTrigger: React_2.ForwardRefExoticComponent>; declare type TotalAmount = string; export declare const tw: (...classes: string[]) => string; export declare const twMerge: (...classLists: ClassNameValue[]) => string; /** * A function that updates cached data based on the old data. * * @template T - The type of the cached data. * @param {QueryClient} queryClient - The queryClient instance. * @param {T | undefined} oldData - The current cached data or undefined if no data exists. * @returns {T} - The updated data. */ declare type UpdaterFunction = (draft: Draft> | undefined) => T; export declare const useAuth: () => { isAuthenticated: boolean | undefined; user: Local_DTO.User; nationalId: string | null | undefined; }; /** * Custom hook to retrieve cached data and its associated state. * * @template T - The type of data being queried. * @param {QueryClient} queryClient - The queryClient instance. * @param {QueryKey} queryKey - The key used to identify the query in the cache. * @param {(data: T | undefined) => T | undefined} [transform] - Optional transformation function to apply to the cached data. * @returns {QueryState} The state of the query, including the data, status, and any errors. */ export declare function useCachedData(queryKey: QueryKey, queryClient: QueryClient, transform?: (data: T | undefined) => T | undefined): QueryState; export { useController } export { useFieldArray } export { useForm } export { useFormContext } export declare const useFormField: () => { invalid: boolean; isDirty: boolean; isTouched: boolean; isValidating: boolean; error?: FieldError; newId: string; name: string; formItemId: string; formDescriptionId: string; formMessageId: string; }; export { UseFormReturn } export { useFormState } export declare const useLanguage: UseBoundStore, "setState"> & { setState(partial: Local_DTO_2.useLanguageStore | Partial | ((state: Local_DTO_2.useLanguageStore) => Local_DTO_2.useLanguageStore | Partial), replace?: boolean | undefined, action?: A | undefined): void; }, "setState"> & { setState(nextStateOrUpdater: Local_DTO_2.useLanguageStore | Partial | ((state: WritableDraft) => void), shouldReplace?: boolean | undefined, action?: string | { type: string; } | undefined): void; }>; /** * @public */ export declare const useOIDCAuth: () => AuthContextProps; declare enum UserTypes { None = "None", Employee = "Employee", Student = "K12Student", Parent = "ParentGuardian" } export declare function useSidebar(): SidebarContext; export declare const useSwitchData: () => (arValue?: string, enValue?: string) => string; export declare function useToast(): { toast: typeof toast; dismiss: (toastId?: string) => void; toasts: ToasterToast[]; }; /** * A custom hook to update cached data in React Query. * * @template T - The type of the data in the cache. * @returns {(key: QueryKey, updater: T | UpdaterFunction) => void} - A function to update the cached data. */ export declare const useUpdateCachedData: (queryClient: QueryClient) => (key: QueryKey, updater: T | UpdaterFunction) => void; export { useWatch } declare type ValueType = string | number; export declare const Widget: React_2.ForwardRefExoticComponent>; export declare interface WidgetActionItem extends Partial { label: string; icon?: React_2.ReactNode; onClick: () => void; 'data-testid'?: string; } export declare const WidgetActions: { ({ actions }: WidgetActionsProps): JSX_2.Element; displayName: string; }; declare interface WidgetActionsProps extends React_2.HTMLAttributes { actions: WidgetActionItem[]; } declare type WidgetBaseProps = Pick; declare interface WidgetConfig { alias: string; title: string; titleEn: string; description?: string; descriptionEn?: string; srcImage?: string; srcImageEn?: string; size: WidgetSize; isVisible: boolean; isEditable: boolean; isMandatory: boolean; isResizable: boolean; containerValue?: string; } export declare const WidgetContent: React_2.ForwardRefExoticComponent & VariantProps<(props?: ({ direction?: "col" | "row" | null | undefined; } & ClassProp) | undefined) => string> & React_2.RefAttributes>; export declare const WidgetHeader: React_2.ForwardRefExoticComponent & React_2.RefAttributes>; declare interface WidgetProps extends React.HTMLAttributes { config: WidgetConfig; isEditMode: boolean; onConfigChange?: (changes: Partial) => void; isDragOverlay?: boolean; isOver?: boolean; isDragging?: boolean; } declare type WidgetSize = 'half' | 'full'; export declare const WidgetTitle: React_2.ForwardRefExoticComponent & React_2.RefAttributes>; export { } declare namespace Calendar { var displayName: string; }