blob: 5072dc8a731219258404cd5c9b9400a5bf131711 [file] [log] [blame]
Leo Repp58b9f112021-11-22 11:57:47 +01001/// <reference types="node" />
2import { IPartialOptions } from './managers/options';
3import { ITask } from './managers/tasks';
4import { EntryItem } from './types/entries';
5import { Pattern } from './types/patterns';
6/**
7 * Synchronous API.
8 */
9export declare function sync(source: Pattern | Pattern[], opts?: IPartialOptions): EntryItem[];
10/**
11 * Asynchronous API.
12 */
13export declare function async(source: Pattern | Pattern[], opts?: IPartialOptions): Promise<EntryItem[]>;
14/**
15 * Stream API.
16 */
17export declare function stream(source: Pattern | Pattern[], opts?: IPartialOptions): NodeJS.ReadableStream;
18/**
19 * Return a set of tasks based on provided patterns.
20 */
21export declare function generateTasks(source: Pattern | Pattern[], opts?: IPartialOptions): ITask[];