import { CSSObject } from 'styled-components'; import { ReactNode } from 'react'; import { IconName } from '@fortawesome/fontawesome-svg-core'; declare type ExtraPartial = { [P in keyof T]?: T[P] extends Record ? Partial : T[P]; }; export interface PlainObject { [index: string]: any; } export declare type HiroColors = 'primary' | 'secondary' | 'primaryText' | 'secondaryText' | 'red' | 'orange' | 'yellow' | 'green' | 'teal' | 'blue' | 'purple' | 'pink' | 'brown' | 'black' | 'grey' | 'white'; export declare type Greyscales = 'lightest' | 'lighter' | 'light' | 'medium' | 'dark' | 'darker' | 'darkest'; export declare type FixedWidth = string | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16; export interface BreakpointDefinitions { sm: number; md: number; lg: number; xl: number; } export declare type ColorDefinitionValuesEnum = 'default' | 'active' | 'hover' | 'light' | 'dark' | 'verylight' | 'highlighted' | 'highlightedHover' | 'saturated' | 'disabled' | 'transparent' | 'verytransparent' | 'blured'; export declare type ColorDefinitionValues = Record; export declare type SizeScale = 'mini' | 'tiny' | 'small' | 'medium' | 'large' | 'big' | 'huge' | 'massive'; export declare type ColorDefinitions = Record; export declare type ColorOverwrite = { [C in ColorDefinitionValuesEnum]?: string; } & { default: string; }; export interface FontDefinitons { h1: CSSObject; h2: CSSObject; h3: CSSObject; } export declare type GreyscaleDefinitions = { [K in Greyscales]: string; }; export interface SizeDefinitions { borderRadius: string | number; borderRadiusInput: string | number; padding: Record<'normal' | 'extra', string>; scale: Record; width: BreakpointDefinitions; } export interface HiroDefaultTheme { breakpoints: BreakpointDefinitions; colors: Record; font: FontDefinitons; global: CSSObject; greyscale: GreyscaleDefinitions; sizes: SizeDefinitions; name: string; } export interface HiroPartialTheme { name?: string; breakpoints?: ExtraPartial; colors?: ExtraPartial>; font?: ExtraPartial; global?: CSSObject; greyscale?: ExtraPartial; sizes?: ExtraPartial; gradients?: ExtraPartial>; } export interface DefaultTheme { breakpoints: BreakpointDefinitions; colors: ColorDefinitions; font: FontDefinitons; global: CSSObject; greyscale: GreyscaleDefinitions; sizes: SizeDefinitions; gradients?: ColorDefinitions; } declare module 'styled-components' { interface DefaultTheme { breakpoints: BreakpointDefinitions; colors: ColorDefinitions; font: FontDefinitons; global: CSSObject; greyscale: GreyscaleDefinitions; sizes: SizeDefinitions; gradients?: ColorDefinitions; } } export declare type HiroIcons = IconName; export declare type renderType = () => ReactNode; export interface VariablesProps { [key: string]: string[]; } export interface Rules { start: Rule[]; } export interface Rule { regex: string | null; token: string; } export interface OriginNodeData { name: string; url: string; } export interface UserFromOgit { id: string; name: string; status?: string; email: string; roles?: string; avatar: string; } export declare type ReviewStatus = 'PENDING' | 'APPROVED' | 'REFUSED' | 'SKIPPED' | 'DONE'; export interface AuditKiReview { [key: string]: { status: ReviewStatus; }; } export interface Team { id: string; name: string; description: string; } export interface SessionData { id: string; title: string; description?: string | null; archived: boolean; knowledgeOwner?: string; originNodeHref?: OriginNodeData | null; actions?: ReactNode[]; descriptionActions?: ReactNode[]; commentsCount?: number; handedOver?: boolean; conversionReviewerIds?: string[]; teachingReviewerIds?: string[]; teachingReviewParticipantIds?: string[]; conversionReviewParticipantIds?: string[]; conversionOwnerId?: string; teachingOwnerId?: string; teachingRoomsCompleted?: number; teachingRooms?: number; teachingStepsDeployed?: number; teachingSteps?: number; auditReviewMode?: boolean; approvedTeams?: Team[]; rejectedTeams?: Team[]; auditKiReview?: AuditKiReview; auditReviewerIds?: string[]; auditKiReviewerIds?: string[]; } export interface ReviewKiData { approved: number; refused: number; pending: number; } export interface Reviewer extends UserFromOgit { reviewDone: boolean; } export interface ViewData { action: () => void; title: string; } export declare enum ReviewStatuses { PENDING = "PENDING", DONE = "DONE", APPROVED = "APPROVED", REFUSED = "REFUSED", SKIPPED = "SKIPPED" } export {};