///
///
import * as fs from "fs";
import * as request from "request";
import { IParserExtraOptions, ParserFunction, ReadableSource } from "../globals";
import { IParserConfig } from "../globals";
export declare enum ParserType {
URL = "URL",
STREAM = "STREAM",
FILE = "FILE",
}
export declare class Parser {
source: ReadableSource;
static process(source: ReadableSource, selector: string, processing: string, extraOptions?: any): Promise;
contents: Buffer;
transforms: ParserFunction[];
extraOptions: IParserExtraOptions;
config: IParserConfig;
type: ParserType;
constructor(source: ReadableSource, extraOptions?: object);
transform(callback: ParserFunction): this;
extend(configObject: any): this;
load(): Promise;
extendFromFileIfExists(): void;
read(): fs.ReadStream | request.Request;
getProcessor(name: string): {
processor: ParserFunction;
args: string[];
};
}