import { Sequence, GenIterable } from './types'; import { toIterableIterator } from './util/util'; export { Sequence, GenIterable, AsyncGenIterable } from './types'; export { toIterableIterator } from './util/util'; export interface SequenceCreator { (i: GenIterable): Sequence; fromObject: (u: U) => Sequence>; } export declare function genSequence(i: () => GenIterable): Sequence; export declare function genSequence(i: GenIterable): Sequence; export declare const GenSequence: { genSequence: typeof genSequence; sequenceFromRegExpMatch: typeof sequenceFromRegExpMatch; sequenceFromObject: typeof sequenceFromObject; }; /** * alias of toIterableIterator */ export declare const toIterator: typeof toIterableIterator; export declare type KeyValuePair = [keyof T, T[keyof T]]; export declare function objectIterator(t: T): IterableIterator>; export declare function objectToSequence(t: T): Sequence>; export declare function sequenceFromObject(t: T): Sequence>; export declare function sequenceFromRegExpMatch(pattern: RegExp, text: string): Sequence; export default genSequence;