import { MiddleOutConfig } from '../../types/index.js';

/**
 * Decompresses a string compressed by `middleOutCompress`.
 *
 * Supported formats:
 *   MO::<algorithm>:<data>::WEISSMAN::<score>
 *
 * If the format is unknown, we fall back to raw middle-out reversal.
 *
 * @param compressed - The encoded string.
 * @param options - Optional config override.
 * @returns The original string... or a legally distinct approximation of it.
 */
declare function middleOutDecompress(compressed: string, options?: Partial<MiddleOutConfig>): string;
declare function decompress(encoded: string, algo: string, config: any): string;

export { decompress, middleOutDecompress };
