/**
 * Various layer utilities for the Scene Viewer application.
 *
 * @internal
 */
import type { MultiOriginJSONSupport } from "../../core/MultiOriginJSONSupport.js";
import type { OperationalLayer } from "../../layers/mixins/OperationalLayer.js";

/**
 * Reverts the value of a property to the value that was read
 * from a specific origin.
 *
 * @param layer - layer.
 * @param property - layer property to revert.
 * @param origin - to revert to.
 * @internal
 */
export function revertLayerProperty(layer: OperationalLayer & MultiOriginJSONSupport, property: string, origin: "service" | "portal-item" | "web-scene" | "web-map" | "link-chart"): void;

/**
 * Get the origin of a property in the store.
 *
 * @param layer - layer.
 * @param property - layer property to revert.
 * @returns origin of property.
 * @internal
 */
export function originOfLayerProperty(layer: OperationalLayer & MultiOriginJSONSupport, property: string): "defaults" | "service" | "portal-item" | "web-scene" | "web-map" | "link-chart" | "user" | null | undefined;