| | |
| | | export type CustomOptions = import("./index.js").CustomOptions; |
| | | export type RawSourceMap = import("./index.js").RawSourceMap; |
| | | export type PredefinedOptions<T> = import("./index.js").PredefinedOptions<T>; |
| | | export type ExtractedComments = Array<string>; |
| | | export type ExtractedComments = string[]; |
| | | /** |
| | | * @param {Input} input input |
| | | * @param {RawSourceMap=} sourceMap source map |
| | |
| | | function supportsWorkerThreads(): boolean | undefined; |
| | | } |
| | | /** |
| | | * @param {Input} input input |
| | | * @param {RawSourceMap=} sourceMap source map |
| | | * @param {CustomOptions=} minimizerOptions options |
| | | * @returns {Promise<MinimizedResult>} minimized result |
| | | */ |
| | | export function jsonMinify( |
| | | input: Input, |
| | | sourceMap?: RawSourceMap | undefined, |
| | | minimizerOptions?: CustomOptions | undefined, |
| | | ): Promise<MinimizedResult>; |
| | | export namespace jsonMinify { |
| | | function getMinimizerVersion(): string; |
| | | function supportsWorker(): boolean; |
| | | function supportsWorkerThreads(): boolean; |
| | | } |
| | | /** |
| | | * @template T |
| | | * @typedef {() => T} FunctionReturning |
| | | */ |