import { CancellationToken } from "../../../../../base/common/cancellation.js"; import { Disposable } from "../../../../../base/common/lifecycle.js"; import { ILogService } from "../../../../../platform/log/common/log.service.js"; import { IQuickInputService } from "../../../../../platform/quickinput/common/quickInput.service.js"; export declare const PICK_REPOSITORY_COMMAND_ID = "_chat.pickRepository"; export interface IRepositoryPickerOptions { readonly allowRepositoryUrl?: boolean; readonly placeholder?: string; /** Maps the typed value to what items are filtered by locally, so a search term that is rewritten for the API still matches its results. */ readonly filterValue?: (value: string) => string; } export interface IRepositoryPickResult { readonly repository?: string; readonly cloneUrl?: string; } /** The repository picker shared by extension-backed cloud sessions and browser session creation. */ export declare class RepositoryPicker extends Disposable { private readonly quickInputService; private readonly logService; private readonly _currentPick; constructor(quickInputService: IQuickInputService, logService: ILogService); pickRepository(getRepositories: (query: string, token: CancellationToken) => Promise, options?: IRepositoryPickerOptions, token?: CancellationToken): Promise; }