import type { ISlidePlaceholderData, ISlidePlaceholderIconConfig } from './slide.type'; import { ShapeFillEnum, ShapeLineTypeEnum } from '@univerjs-pro/engine-shape'; import { PlaceholderTypeEnum } from './slide.enum'; /** * Centralized default configurations for slide domain. * * These values are shared by core slide logic and UI implementations, * so they should live in @univerjs-pro/slides and be reused by consumers. */ /** Default geometry for inserted elements. */ export declare const SLIDE_INSERT_DEFAULT_SIZE: { shapeWidth: number; shapeHeight: number; textBoxWidth: number; textBoxHeight: number; minPositionOffset: number; fallbackImageWidth: number; fallbackImageHeight: number; minImageEdge: number; imageFitRatio: number; }; export declare function resolveSlideTextBoxDefaultSize(isHorizontal?: boolean): { width: number; height: number; }; /** Default colors for newly inserted normal shapes. */ export declare const SLIDE_INSERT_DEFAULT_SHAPE_STYLE: { fillColor: string; strokeColor: string; strokeWidth: number; }; /** * Default text-box style used by insert-service and render adaptors. * shapeText.text and shapeText.isHorizontal should be supplied by callers. */ export declare const SLIDE_TEXT_BOX_DEFAULT_STYLE: { readonly isTextBox: true; readonly fill: { readonly fillType: ShapeFillEnum.SolidFill; readonly color: "#FFFFFF"; }; readonly stroke: { readonly lineStrokeType: ShapeLineTypeEnum.SolidLine; readonly width: 1; readonly color: "#bcbcbc"; }; readonly shapeText: { readonly isRichText: false; readonly fontSize: 16; readonly color: "#111827"; readonly horizontalAlign: "left"; readonly verticalAlign: "top"; }; }; /** Default drawing stroke for chart image frames. */ export declare const SLIDE_CHART_DEFAULT_STROKE: { readonly lineStrokeType: ShapeLineTypeEnum.SolidLine; readonly width: 1; readonly color: "#d1d5db"; readonly opacity: 1; }; /** * Default placeholder icon keys when slide data has no explicit icon config. */ export declare const SLIDE_PLACEHOLDER_DEFAULT_ICON_KEYS: Partial>; /** * Supported single-click placeholder actions. * * Keep this intentionally narrow until multi-function placeholders are wired * with explicit UX. Object/table/media/diagram placeholders render no action * icons for now to avoid ambiguous placeholder behavior. */ export declare const SLIDE_PLACEHOLDER_ACTION_ICON_KEY_BY_TYPE: Partial>; /** Icon component names for placeholder icon keys in @univerjs/icons. */ export declare const SLIDE_PLACEHOLDER_ICON_COMPONENT_NAME_BY_KEY: Record; /** Prefix for i18n key: slides.placeholder.icon.{key}. */ export declare const SLIDE_PLACEHOLDER_ICON_LABEL_KEY_PREFIX = "slides.placeholder.icon."; export declare function buildDefaultPlaceholderIcons(type: PlaceholderTypeEnum): ISlidePlaceholderIconConfig[]; export declare function resolvePlaceholderActionIcons(placeholder: ISlidePlaceholderData): ISlidePlaceholderIconConfig[]; /** * Fallback placeholder text i18n key by placeholder type. * * Layout pages should only define placeholder type and geometry. If a * placeholder element supplies its own `textConfig` / `defaultText`, that data * wins; this map is only used as the final type-based i18n-key fallback. */ export declare const SLIDE_PLACEHOLDER_DEFAULT_TEXT_KEYS: Partial>; export declare function resolveDefaultPlaceholderTextKey(type: PlaceholderTypeEnum): string | undefined;