///
///
import { File } from "gulp-util";
/**
* Accepts the contents of a File object as a Buffer, applies a
* transformation, and returns a Promise with the result.
*/
export interface TransformFunction {
(contents: Buffer, file: File): Promise;
}
/**
* A Vinyl File object in buffer mode.
*/
export interface BufferFile extends File {
contents: Buffer;
}
/**
* A Vinyl File object in streaming mode.
*/
export interface StreamFile extends File {
contents: NodeJS.ReadableStream;
}
/**
* A Node.js callback.
*/
export interface NodeCallback {
(error: null, value: T): void;
(error?: Error | null): void;
}
/**
* The name to display when a PluginError is thrown or emitted.
*/
export declare const PLUGIN_NAME = "gulp-transform";
/**
* Tests whether a value is a function.
*/
export declare function isFunction(value: any): value is Function;
/**
* Tests whether a value is either null or undefined.
*/
export declare function isNil(value: any): value is null | undefined;
/**
* Tests whether a value is an object that is not a function.
*/
export declare function isObjectLike(value: any): value is object;
/**
* Tests whether a value is a string primitive.
*/
export declare function isString(value: any): value is string;