var n = Object.defineProperty;
var i = (s, r, e) => r in s ? n(s, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[r] = e;
var a = (s, r, e) => i(s, typeof r != "symbol" ? r + "" : r, e);
class m {
  constructor() {
    /**
     * Determines if any of the provided files have a type that matches the applicable file types.
     * This check is used to determine if the transformer should be applied to the file set.
     *
     * @param files - An array of files to check.
     * @returns True if at least one file matches an applicable file type, false otherwise.
     */
    a(this, "canTransformFiles", (r) => r.some((e) => this.applicableFileTypes.includes(e.file.type)));
    /**
     * Applies the transformation to files if they contain at least one applicable file type.
     * Uses `transform` if the file types match; otherwise, returns the original files.
     *
     * @param files - An array of files to potentially transform.
     * @returns A promise that resolves to the transformed files if applicable, or the original files.
     */
    a(this, "applyTransformer", (r) => this.canTransformFiles(r) ? this.transform(r) : new Promise((e) => {
      e(r);
    }));
  }
}
export {
  m as MediaItemTransformer
};
