UNPKG

gulp-emu

Version:
48 lines (47 loc) 1.73 kB
/*! * Copyright 2021 Ron Buckton (rbuckton@chronicles.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /// <reference types="node" /> import { Transform } from "stream"; import Vinyl = require("vinyl"); declare function ecmarkup(opts?: ecmarkup.Options): NodeJS.ReadWriteStream; declare namespace ecmarkup { interface Options extends Omit<import("ecmarkup").Options, "jsOut" | "cssOut" | "outfile" | "watch"> { js?: boolean | string; css?: boolean | string; assetsDir?: string; biblio?: boolean; } class EcmarkupTransform extends Transform { private _opts; private _emuOpts; private _queue; private _countdown; private _cache; private _ecmarkup; constructor(opts?: Options); get ecmarkupVersion(): string; _write(file: Vinyl, enc: string, cb: () => void): void; _flush(cb: () => void): void; private _enqueue; private _finishWrite; private _waitForWrite; private _buildAsync; private _readFilesAsync; private _mergeFilesAsync; private _readFileAsync; } } export = ecmarkup;