import * as r from 'request';
export declare class RequestError extends Error {
    code?: number;
}
declare function teenyRequest(reqOpts: r.Options): r.Request;
declare namespace teenyRequest {
    var defaults: (defaults: r.OptionalUriUrl) => (reqOpts: r.Options, callback?: r.RequestCallback | undefined) => void | r.Request;
}
declare function teenyRequest(reqOpts: r.Options, callback: r.RequestCallback): void;
declare namespace teenyRequest {
    var defaults: (defaults: r.OptionalUriUrl) => (reqOpts: r.Options, callback?: r.RequestCallback | undefined) => void | r.Request;
}
export { teenyRequest };
