import { IAICustomizationWorkspaceService } from "../../common/aiCustomizationWorkspaceService.service.js"; import { IChatWidgetService } from "../chat.service.js"; import { IChatService } from "../../common/chatService/chatService.service.js"; import { PromptsType } from "../../common/promptSyntax/promptTypes.js"; import { IPromptsService } from "../../common/promptSyntax/service/promptsService.service.js"; import { URI } from "../../../../../base/common/uri.js"; import { ICommandService } from "../../../../../platform/commands/common/commands.service.js"; import { IQuickInputService } from "../../../../../platform/quickinput/common/quickInput.service.js"; import { ICustomizationSourceFolder } from "../../common/customizationHarnessService.js"; import { ICustomizationHarnessService } from "../../common/customizationHarnessService.service.js"; import { CancellationToken } from "../../../../../base/common/cancellation.js"; import { IInstantiationService } from "../../../../../platform/instantiation/common/instantiation.js"; import { ILabelService } from "../../../../../platform/label/common/label.service.js"; /** * Service that opens an AI-guided chat session to help the user create * a new customization (agent, skill, instructions, prompt, hook). * * Opens a new chat in agent mode, then sends a request with hidden * system instructions (modeInstructions) that guide the AI through * the creation process. The user sees only their message. */ export declare class CustomizationCreatorService { private readonly commandService; private readonly chatService; private readonly chatWidgetService; private readonly workspaceService; private readonly promptsService; private readonly quickInputService; private readonly instantiationService; private readonly harnessService; constructor(commandService: ICommandService, chatService: IChatService, chatWidgetService: IChatWidgetService, workspaceService: IAICustomizationWorkspaceService, promptsService: IPromptsService, quickInputService: IQuickInputService, instantiationService: IInstantiationService, harnessService: ICustomizationHarnessService); createWithAI(type: PromptsType, workspaceFolder?: URI): Promise; /** * Resolves the workspace directory for a new customization file based on the * active project root. */ resolveTargetDirectory(type: PromptsType): URI | undefined; /** * Resolves the user-level directory for a new customization file. */ resolveUserDirectory(type: PromptsType): Promise; } export declare class CustomizationLocationPicker { private readonly quickInputService; private readonly harnessService; private readonly instantiationService; private readonly labelService; constructor(quickInputService: IQuickInputService, harnessService: ICustomizationHarnessService, instantiationService: IInstantiationService, labelService: ILabelService); /** Resolves a writable target URI, or `null` when the user cancels destination selection. */ resolveTargetDirectoryWithPicker(sessionResource: URI, type: PromptsType, target?: "local" | "user", workspaceFolder?: URI): Promise; /** Resolves a writable target folder, asking the user when more than one destination is available. */ resolveTargetFolderWithPicker(sessionResource: URI, type: PromptsType, target?: "local" | "user", workspaceFolder?: URI): Promise; /** Returns writable source folders without prompting for a destination. */ resolveTargetFolders(sessionResource: URI, type: PromptsType, target?: "local" | "user", token?: Readonly): Promise; } /** * Resolves the workspace directory for a new customization file based on the active project root. */ export declare function resolveWorkspaceTargetDirectory(workspaceService: IAICustomizationWorkspaceService, type: PromptsType): URI | undefined; /** * Resolves the user-level directory for a new customization file. * Delegates to IPromptsService.getSourceFolders() which returns the appropriate * user root (VS Code profile in core, ~/.copilot in sessions). */ export declare function resolveUserTargetDirectory(promptsService: IPromptsService, type: PromptsType): Promise;