import type { CommandError, Subprocess } from '@stacksjs/types';
import type { ZlibCompressionOptions } from 'bun';

declare interface ZipOptions {
  cwd?: string
}
export declare function zip(from: string | string[], to?: string, options?: ZipOptions): Promise<Result<Subprocess, CommandError>>;
export declare function unzip(paths: string | string[]): Promise<Result<Subprocess, CommandError>>;
export declare function archive(paths: string | string[]): Promise<Result<Subprocess, CommandError>>;
export declare function unarchive(paths: string | string[]): Promise<Result<Subprocess, CommandError>>;
export declare function compress(paths: string[]): Promise<Result<Subprocess, CommandError>>;
export declare function decompress(paths: string | string[]): Promise<Result<Subprocess, CommandError>>;
export declare function gzipSync(data: Uint8Array, options?: ZlibCompressionOptions): Uint8Array;
export declare function gunzipSync(data: Uint8Array): Uint8Array;
export declare function deflateSync(data: Uint8Array, options?: ZlibCompressionOptions): Uint8Array;
export declare function inflateSync(data: Uint8Array): Uint8Array;