/**
 * Provides utility functions for converting simple symbols and picture symbols to [CIMSymbols](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html).
 *
 * @beta
 * @since 4.29
 * @see [CIMSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html)
 * @see [cimSymbolUtils](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-cimSymbolUtils.html)
 * @see [symbolService](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-symbolService.html)
 */
import type CIMSymbol from "../CIMSymbol.js";
import type { Symbol2DUnion } from "../types.js";

/**
 * Converts a given symbol to a CIMSymbol.
 *
 * @param symbol - The symbol to convert to a CIMSymbol.
 * @returns Returns a CIMSymbol representation of the given symbol.
 * @since 4.29
 * @example
 * const simpleLine = new SimpleLineSymbol({
 *    width: 1,
 *    color: "black",
 *    style: "dash",
 *    cap: "round",
 * });
 * const cimLine = cimConversionUtils.convertToCIMSymbol(simpleLine);
 * graphic.symbol = cimLine;
 */
export function convertToCIMSymbol(symbol: Symbol2DUnion): CIMSymbol;