import { Plugin } from "@webiny/plugins" ; export abstract class CompressionPlugin extends Plugin { public static readonly type = "elasticsearch.compression" ; /**
     * Check if data can be compressed.
     */ public abstract canCompress ( data ) ; /**
     * Pass the data to get the compressed one back.
     */ public abstract compress ( data ) ; /**
     * Check if data can be decompressed.
     */ public abstract canDecompress ( data ) ; /**
     * Passed the compressed data to get the original data back.
     */ public abstract decompress ( data ) ; }