import { DialogValues, InputBase } from "../.."; import * as vscode from "vscode"; import { GenericQuickPickOptions, QuickPickItemFunction, QuickPickItems } from "./GenericQuickPick"; /** * Any type of an generic quick pick. This is overwritten again in different forms. This quick pick should not be used. */ export declare abstract class GenericQuickPick extends InputBase { /** * Loads the items via the given function. * It will also transform all the different data formats into one format. * * @param loadFunction - the function to load the items * @param currentResults - the current dialog results * @returns the loaded items and an optional additional title */ protected loadItems(loadFunction: QuickPickItemFunction, currentResults: DialogValues): Promise; /** * Generates the placeHolder for the quick picks. * * @param additionalPlaceHolder - the additional placeHolder from the {@link QuickPickItem.additionalPlaceholder} * @returns the placeHolder that should be used for any quick pick. */ protected generatePlaceHolder(additionalPlaceHolder?: string): string; /** * Sets the selected items. * * These can be from the current dialog values in the quick pick or * from the items of the quick pick that were pre-picked by the program. * * This will only happen if the quick pick can select many items. * * @param quickPick - the quick pick that was generated * @param currentResults - the current dialog values */ protected setSelectedItems(quickPick: vscode.QuickPick, currentResults: DialogValues): void; }