using System.Collections.Generic; namespace Umbraco.Core.Deploy { /// /// Provides methods to parse image tag sources in property values. /// public interface IImageSourceParser { /// /// Parses an Umbraco property value and produces an artifact property value. /// /// The property value. /// A list of dependencies. /// The parsed value. /// Turns src="/media/..." into src="umb://media/..." and adds the corresponding udi to the dependencies. string ToArtifact(string value, ICollection dependencies); /// /// Parses an artifact property value and produces an Umbraco property value. /// /// The artifact property value. /// The parsed value. /// Turns umb://media/... into /media/.... string FromArtifact(string value); } }