import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle"; import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service"; import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service"; import { ITestProfileService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testProfileService.service"; import { IMainThreadTestController } from "./testService.js"; import { ITestItem, ITestRunProfile, InternalTestItem, TestRunProfileBitset } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testTypes"; /** * Gets whether the given profile can be used to run the test. */ export declare const canUseProfileWithTest: (profile: ITestRunProfile, test: InternalTestItem) => boolean; interface IExtendedTestRunProfile extends ITestRunProfile { wasInitiallyDefault: boolean; } /** * Given a capabilities bitset, returns a map of context keys representing * them. */ export declare const capabilityContextKeys: (capabilities: number) => [ key: string, value: boolean ][]; export declare class TestProfileService extends Disposable implements ITestProfileService { readonly _serviceBrand: undefined; private readonly userDefaults; private readonly capabilitiesContexts; private readonly changeEmitter; private readonly controllerProfiles; /** @inheritdoc */ readonly onDidChange: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event; constructor(contextKeyService: IContextKeyService, storageService: IStorageService); /** @inheritdoc */ addProfile(controller: IMainThreadTestController, profile: ITestRunProfile): void; /** @inheritdoc */ updateProfile(controllerId: string, profileId: number, update: Partial): void; /** @inheritdoc */ configure(controllerId: string, profileId: number): void; /** @inheritdoc */ removeProfile(controllerId: string, profileId?: number): void; /** @inheritdoc */ capabilitiesForTest(test: ITestItem): number; /** @inheritdoc */ all(): MapIterator<{ profiles: IExtendedTestRunProfile[]; controller: IMainThreadTestController; }>; /** @inheritdoc */ getControllerProfiles(profileId: string): IExtendedTestRunProfile[]; /** @inheritdoc */ getGroupDefaultProfiles(group: TestRunProfileBitset, controllerId?: string): IExtendedTestRunProfile[]; /** @inheritdoc */ setGroupDefaultProfiles(group: TestRunProfileBitset, profiles: ITestRunProfile[]): void; getDefaultProfileForTest(group: TestRunProfileBitset, test: InternalTestItem): ITestRunProfile | undefined; private refreshContextKeys; } export {};