@logic-pad/core
Version:
17 lines (16 loc) • 546 B
TypeScript
export default abstract class CompressorBase {
/**
* The unique identifier for this compressor.
*/
abstract get id(): string;
/**
* Compress the given input string into URL-safe compressed string.
* @param input The input string to compress.
*/
abstract compress(input: string): Promise<string>;
/**
* Decompress the given compressed string back into the original string.
* @param input The compressed string to decompress.
*/
abstract decompress(input: string): Promise<string>;
}