UNPKG

769 BTypeScriptView Raw
1/**
2 * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7/// <reference types="node" />
8import type Prompt from './lib/Prompt';
9import type { ScrollOptions } from './types';
10export default class PatternPrompt {
11 protected _pipe: NodeJS.WritableStream;
12 protected _prompt: Prompt;
13 protected _entityName: string;
14 protected _currentUsageRows: number;
15 constructor(pipe: NodeJS.WritableStream, prompt: Prompt);
16 run(onSuccess: (value: string) => void, onCancel: () => void, options?: {
17 header: string;
18 }): void;
19 protected _onChange(_pattern: string, _options: ScrollOptions): void;
20}