UNPKG

787 BTypeScriptView Raw
1/// <reference types="node" />
2import { Readable } from 'stream';
3import { messages } from 'cucumber-messages';
4import ParserMessageStream from './stream/ParserMessageStream';
5import Dialect from './Dialect';
6import IGherkinOptions from './IGherkinOptions';
7declare function fromStream(stream: Readable, options?: IGherkinOptions): ParserMessageStream;
8declare function fromPaths(paths: string[], options?: IGherkinOptions): Readable;
9declare function fromSources(envelopes: messages.IEnvelope[], options?: IGherkinOptions): Readable;
10declare function dialects(): {
11 [key: string]: Dialect;
12};
13declare const _default: {
14 fromPaths: typeof fromPaths;
15 fromStream: typeof fromStream;
16 fromSources: typeof fromSources;
17 dialects: typeof dialects;
18};
19export default _default;