import { Style as Style_internal } from "./Style";
/**
 * A class that exposes style realted properties.
*/
var IgxStyle = /** @class */ /*@__PURE__*/ (function () {
    function IgxStyle() {
        this._implementation = this.createImplementation();
        this._implementation.externalObject = this;
        this.onImplementationCreated();
    }
    IgxStyle.prototype.createImplementation = function () {
        return new Style_internal();
    };
    Object.defineProperty(IgxStyle.prototype, "i", {
        /**
         * @hidden
         */
        get: function () {
            return this._implementation;
        },
        enumerable: false,
        configurable: true
    });
    IgxStyle.prototype.onImplementationCreated = function () {
    };
    IgxStyle.prototype._provideImplementation = function (i) {
        this._implementation = i;
        this._implementation.externalObject = this;
        this.onImplementationCreated();
    };
    IgxStyle.prototype.findByName = function (name) {
        if (this.findEphemera) {
            if (name && name.indexOf("@@e:") == 0) {
                return this.findEphemera(name);
            }
        }
        return null;
    };
    return IgxStyle;
}());
export { IgxStyle };
