UNPKG

@junobuild/cli-tools

Version:

A collection of tools for Juno CLIs and Plugins.

23 lines (22 loc) 723 B
import type { SatelliteConfig } from '@junobuild/config'; export declare const gunzipFile: ({ source }: { source: Buffer; }) => Promise<Buffer>; interface CompressedFile { source: string; compressed: string; mode: 'both' | 'replace'; } export declare const compressFiles: ({ sourceFiles, precompress }: { sourceFiles: string[]; } & Required<Pick<SatelliteConfig, "precompress">>) => Promise<CompressedFile[]>; export declare const gzipFile: (params: { source: string; destination?: string; }) => Promise<string>; export declare const brotliFile: (params: { source: string; destination?: string; }) => Promise<string>; export declare const isGzip: (buffer: Buffer) => boolean; export {};