import { AcDbDatabase, AcDbLinetypePreviewSvgOptions, AcGiBaseLineStyle } from '@mlightcad/data-model'; /** * Normalized line type metadata consumed by ribbon property controls and * standalone selectors. */ export interface LineTypeOption { /** Stable value written back to the database `CELTYPE` system variable. */ value: string; /** User-facing label rendered in the dropdown list. */ label: string; /** Optional inline SVG preview generated from the backing line type record. */ previewSvgString?: string; /** Optional fallback pattern hint used when a live line type record is absent. */ pattern?: 'solid' | 'dashed' | 'hidden' | 'center'; /** Backing CAD line type record used to derive a preview from dash segments. */ lineType?: AcGiBaseLineStyle; /** * Object that can produce an SVG preview (typically `AcDbLinetypeTableRecord`). * Kept separate from {@link lineType} because `record.linetype` is only a * plain style snapshot and does not expose `toPreviewSvgString`. */ previewSvgProvider?: LineTypePreviewSvgProvider; } /** * Object capable of generating an inline SVG linetype preview. */ export type LineTypePreviewSvgProvider = { toPreviewSvgString?: (options?: AcDbLinetypePreviewSvgOptions) => string | null | undefined; }; /** * Returns whether a line style pattern embeds TEXT elements that CSS dash * previews cannot represent. * * @param lineType CAD line style to inspect. */ export declare function lineTypeHasEmbeddedText(lineType?: AcGiBaseLineStyle): boolean; /** * Resolves the optional inline SVG preview from explicit option metadata or the * backing CAD line type table record. * * @param option Option to visualize. * @returns Inline SVG markup string when available. */ export declare function resolveLineTypePreviewSvg(option?: LineTypeOption): string | undefined; /** * Resolves the CSS background used to preview a line type option. * * @param option Option to visualize. When omitted, a solid fallback is used. * @returns A CSS background value that can be bound directly to the preview swatch. */ export declare function resolveLineTypeBackground(option?: LineTypeOption): string; /** * Builds a deduplicated and sorted set of selectable line type options from the * active drawing database. * * @param db Active CAD database that owns the line type table. * @returns Dropdown-ready options, with `Continuous` promoted to the top when present. */ export declare function buildLineTypeOptions(db?: AcDbDatabase): LineTypeOption[]; //# sourceMappingURL=lineTypeOptions.d.ts.map