import { ColorUsage } from './ColorStyleTypes'; import { VerticalAlign } from './FrameTypes'; export declare enum FontWeights { BOLD = "Bold", ITALIC = "Italic", REGULAR = "Regular" } export declare enum Alignment { LEFT = "left", CENTER = "center", RIGHT = "right", JUSTIFY = "justify" } export declare enum TextPosition { TOP = "top", CENTER = "center", BOTTOM = "bottom" } export declare enum Case { TO_LOWER_CASE = "lowercase", TO_UPPER_CASE = "uppercase", NORMAL = "normal" } export declare enum Scripting { SUPERSCRIPT = "superscript", SUBSCRIPT = "subscript", NORMAL = "normal" } export type DisplayColor = ColorUsage & { isApplied: boolean; }; export interface TextProperties { fontKey?: string; fontStyle?: FontWeights; fontSize?: number; textAlign?: Alignment; verticalAlign?: VerticalAlign; underline?: boolean; lineThrough?: boolean; letterSpacing?: string; trackingRight?: string; lineHeight?: number; SUB_SUPER_SCRIPT?: Scripting; typographicCase?: Case; color?: DisplayColor; [key: string]: number | string | Record | null | boolean | undefined; } export interface TextStyle { paragraph?: string; character?: string; [key: string]: number | string | Record | null | boolean | undefined; } export type TextStyleUpdateType = { [key in keyof typeof SelectedTextStyles]?: { value: number | string | boolean; }; }; export interface AppearanceProperties { blendMode?: string; opacity?: string; useFill?: boolean; useStroke?: boolean; useBackground?: boolean; useDropShadow?: boolean; fillColor?: string; strokeColor?: string; backgroundColor?: string; dropShadowColor?: string; } export interface SelectedTextStyle { paragraphStyleId?: string; characterStyleId?: string; fontKey?: string; fontSize?: number; typographicCase?: Case; kerningOn?: boolean; subSuperScript?: Scripting; trackingLeft?: number; trackingRight?: number; paragraphIndentStart?: string; paragraphIndentEnd?: string; paragraphSpaceBefore?: string; paragraphSpaceAfter?: string; textIndent?: string; alignToBaseLine?: boolean; baselineShiftValue?: string; lineHeight?: number; verticalAlign?: VerticalAlign; copyfittingScale?: number; textAlign?: HorizontalAlign; textAlignLast?: HorizontalAlign; textOverprint?: boolean; color?: DisplayColor; strokeColor?: DisplayColor; backgroundColor?: DisplayColor; fillColorApplied?: boolean; strokeColorApplied?: boolean; backgroundColorApplied?: boolean; strokeWidth?: number; underline?: boolean; lineThrough?: boolean; hasLocalFormatting: boolean; markedListType?: MarkedListType; markedListGroup?: string; markedListLevel?: number; } export declare enum HorizontalAlign { left = "left", center = "center", right = "right", justify = "justify" } export declare enum MarkedListType { none = "none", bullet = "bullet", number = "number" } export declare enum SelectedTextStyleSections { STYLE = "textStyle", PROPERTIES = "textProperties", APPEARANCE = "appearance" } export declare enum SelectedTextStyles { PARAGRAPH = "paragraphStyleId", CHARACTER = "characterStyleId", FONT_FAMILY = "fontKey", FONT_STYLE = "fontStyle", FONT_SIZE = "fontSize", LETTER_SPACING = "letterSpacing", LINE_HEIGHT = "lineHeight", TEXT_ALIGN = "textAlign", VERTICAL_ALIGN = "verticalAlign", TYPOGRAPHIC_CASE = "typographicCase", SUB_SUPER_SCRIPT = "subSuperScript", UNDERLINE = "underline", LINE_THROUGH = "lineThrough", FILL_COLOR = "fillColor", COLOR = "color", FILL_COLOR_APPLIED = "fillColorApplied", STROKE_COLOR = "strokeColor", STROKE_COLOR_APPLIED = "strokeColorApplied", BACKGROUND_COLOR = "backgroundColor", BACKGROUND_COLOR_APPLIED = "backgroundColorApplied", DROP_SHADOW_COLOR = "dropShadowColor", BLEND_MODE = "blendMode", OPACITY = "opacity", TRACKING_RIGHT = "trackingRight", BASELINE_SHIFT = "baselineShiftValue", STROKE_WIDTH = "strokeWidth", MARKED_LIST_TYPE = "markedListType", MARKED_LIST_GROUP = "markedListGroup", MARKED_LIST_LEVEL = "markedListLevel" } export interface UpdateStyleType { path: { value: number | string | Record | null | boolean | undefined; }; }