import { URI } from "../../../../../../base/common/uri.js";
import { ExtensionIdentifier, IExtensionDescription } from "../../../../../../platform/extensions/common/extensions.js";
import { IChatModeInstructions, IVariableReference } from "../../chatModes.js";
import { PromptsType } from "../promptTypes.js";
import { IHandOff, ParsedPromptFile } from "../promptFileParser.js";
import { IChatRequestHooks } from "../hookSchema.js";
/**
 * Activation events for prompt file providers.
 */
export declare const CUSTOM_AGENT_PROVIDER_ACTIVATION_EVENT = "onCustomAgentProvider";
export declare const INSTRUCTIONS_PROVIDER_ACTIVATION_EVENT = "onInstructionsProvider";
export declare const PROMPT_FILE_PROVIDER_ACTIVATION_EVENT = "onPromptFileProvider";
export declare const SKILL_PROVIDER_ACTIVATION_EVENT = "onSkillProvider";
/**
 * Context for querying prompt files.
 */
export interface IPromptFileContext {
}
/**
 * Represents a prompt file resource from an external provider.
 */
export interface IPromptFileResource {
    /**
     * The URI to the agent or prompt resource file.
     */
    readonly uri: URI;
}
/**
 * Where the prompt is stored.
 */
export declare enum PromptsStorage {
    local = "local",
    user = "user",
    extension = "extension"
}
/**
 * The type of source for extension agents.
 */
export declare enum ExtensionAgentSourceType {
    contribution = "contribution",
    provider = "provider"
}
/**
 * Represents a prompt path with its type.
 * This is used for both prompt files and prompt source folders.
 */
export type IPromptPath = IExtensionPromptPath | ILocalPromptPath | IUserPromptPath;
export interface IPromptPathBase {
    /**
     * URI of the prompt.
     */
    readonly uri: URI;
    /**
     * Storage of the prompt.
     */
    readonly storage: PromptsStorage;
    /**
     * Type of the prompt (e.g. 'prompt' or 'instructions').
     */
    readonly type: PromptsType;
    /**
     * Identifier of the contributing extension (only when storage === PromptsStorage.extension).
     */
    readonly extension?: IExtensionDescription;
    readonly name?: string;
    readonly description?: string;
}
export interface IExtensionPromptPath extends IPromptPathBase {
    readonly storage: PromptsStorage.extension;
    readonly extension: IExtensionDescription;
    readonly source: ExtensionAgentSourceType;
    readonly name?: string;
    readonly description?: string;
}
export interface ILocalPromptPath extends IPromptPathBase {
    readonly storage: PromptsStorage.local;
}
export interface IUserPromptPath extends IPromptPathBase {
    readonly storage: PromptsStorage.user;
}
export type IAgentSource = {
    readonly storage: PromptsStorage.extension;
    readonly extensionId: ExtensionIdentifier;
    readonly type: ExtensionAgentSourceType;
} | {
    readonly storage: PromptsStorage.local | PromptsStorage.user;
};
/**
 * The visibility/availability of an agent.
 * - 'all': available as custom agent in picker AND can be used as subagent
 * - 'user': only available in the custom agent picker
 * - 'agent': only usable as subagent by the subagent tool
 * - 'hidden': neither in picker nor usable as subagent
 */
export type ICustomAgentVisibility = {
    readonly userInvokable: boolean;
    readonly agentInvokable: boolean;
};
export declare function isCustomAgentVisibility(obj: unknown): obj is ICustomAgentVisibility;
export declare enum Target {
    VSCode = "vscode",
    GitHubCopilot = "github-copilot",
    Claude = "claude",
    Undefined = "undefined"
}
export interface ICustomAgent {
    /**
     * URI of a custom agent file.
     */
    readonly uri: URI;
    /**
     * Name of the custom agent as used in prompt files or contexts
     */
    readonly name: string;
    /**
     * Description of the agent
     */
    readonly description?: string;
    /**
     * Tools metadata in the prompt header.
     */
    readonly tools?: readonly string[];
    /**
     * Model metadata in the prompt header.
     */
    readonly model?: readonly string[];
    /**
     * Argument hint metadata in the prompt header that describes what inputs the agent expects or supports.
     */
    readonly argumentHint?: string;
    /**
     * Target of the agent: Copilot, VSCode, Claude, or undefined if not specified.
     */
    readonly target: Target;
    /**
     * What visibility the agent has (user invokable, subagent invokable).
     */
    readonly visibility: ICustomAgentVisibility;
    /**
     * Contents of the custom agent file body and other agent instructions.
     */
    readonly agentInstructions: IChatModeInstructions;
    /**
     * Hand-offs defined in the custom agent file.
     */
    readonly handOffs?: readonly IHandOff[];
    /**
     * List of subagent names that can be used by the agent.
     * If empty, no subagents are available. If ['*'] or undefined, all agents can be used.
     */
    readonly agents?: readonly string[];
    /**
     * Where the agent was loaded from.
     */
    readonly source: IAgentSource;
}
export interface IAgentInstructions {
    readonly content: string;
    readonly toolReferences: readonly IVariableReference[];
    readonly metadata?: Record<string, boolean | string | number>;
}
export interface IChatPromptSlashCommand {
    readonly name: string;
    readonly description: string | undefined;
    readonly argumentHint: string | undefined;
    readonly promptPath: IPromptPath;
    readonly parsedPromptFile: ParsedPromptFile;
}
export interface IAgentSkill {
    readonly uri: URI;
    readonly storage: PromptsStorage;
    readonly name: string;
    readonly description: string | undefined;
    /**
     * If true, the skill should not be automatically loaded by the agent.
     * Use for workflows you want to trigger manually with /name.
     */
    readonly disableModelInvocation: boolean;
    /**
     * If false, the skill is hidden from the / menu.
     * Use for background knowledge users shouldn't invoke directly.
     */
    readonly userInvokable: boolean;
}
/**
 * Type of agent instruction file.
 */
export declare enum AgentFileType {
    agentsMd = "agentsMd",
    claudeMd = "claudeMd",
    copilotInstructionsMd = "copilotInstructionsMd"
}
/**
 * Represents a resolved agent instruction file with its real path for duplicate detection.
 * Used by listAgentInstructions to filter out symlinks pointing to the same file.
 */
export interface IResolvedAgentFile {
    readonly uri: URI;
    /**
     * The real path of the file, if it is a symlink.
     */
    readonly realPath: URI | undefined;
    readonly type: AgentFileType;
}
export interface Logger {
    logInfo(message: string): void;
}
/**
 * Reason why a prompt file was skipped during discovery.
 */
export type PromptFileSkipReason = "missing-name" | "missing-description" | "name-mismatch" | "duplicate-name" | "parse-error" | "disabled" | "all-hooks-disabled" | "claude-hooks-disabled";
/**
 * Result of discovering a single prompt file.
 */
export interface IPromptFileDiscoveryResult {
    readonly uri: URI;
    readonly storage: PromptsStorage;
    readonly status: "loaded" | "skipped";
    readonly name?: string;
    readonly skipReason?: PromptFileSkipReason;
    /** Error message if parse-error */
    readonly errorMessage?: string;
    /** For duplicates, the URI of the file that took precedence */
    readonly duplicateOf?: URI;
    /** Extension ID if from extension */
    readonly extensionId?: string;
    /** If true, the skill is hidden from the / menu (user-invokable: false) */
    readonly userInvokable?: boolean;
    /** If true, the skill won't be automatically loaded by the agent (disable-model-invocation: true) */
    readonly disableModelInvocation?: boolean;
}
/**
 * Summary of prompt file discovery for a specific type.
 */
export interface IPromptDiscoveryInfo {
    readonly type: PromptsType;
    readonly files: readonly IPromptFileDiscoveryResult[];
}
export interface IConfiguredHooksInfo {
    readonly hooks: IChatRequestHooks;
    readonly hasDisabledClaudeHooks: boolean;
}
