import { type SkillAllowedSet, type SkillProvenance } from "../../../skill-access.ts";
import type { SourceScope } from "../../../source-info.ts";
import type { RawConfig } from "./config-schema.ts";
type RawServer = NonNullable<RawConfig["mcpServers"]>[string];
export interface SkillLike {
    readonly name: string;
    readonly filePath: string;
    readonly baseDir: string;
    readonly sourceInfo?: {
        readonly scope: SourceScope;
    };
    readonly provenance?: SkillProvenance;
    readonly allowedSet?: SkillAllowedSet;
}
/** A declared server as registered: the first declaring skill's config and where that skill came from. */
export interface SkillServerRegistration {
    raw: RawServer & {
        includeTools?: string[];
    };
    sourcePath: string;
    skillName: string;
    scope: SourceScope | undefined;
    provenance?: SkillProvenance;
    allowedSet?: SkillAllowedSet;
    skillPath?: string;
}
interface SkillServerDecl extends SkillServerRegistration {
    /** skill name -> includeTools globs declared by that skill (default all). */
    includeToolsBySkill: Map<string, string[]>;
}
export interface SkillMcpDeclarations {
    servers: Map<string, SkillServerDecl>;
    warnings: string[];
}
export declare function parseSkillMcpDeclarations(skills: readonly SkillLike[]): SkillMcpDeclarations;
/** `*`-only glob match against the ORIGINAL (server-side) tool name. */
export declare function matchIncludeTools(globs: readonly string[], toolName: string): boolean;
/**
 * Names to reveal when `skillName` loads: for every server the skill declared,
 * every REGISTERED tool (mapped `mcp_<server>_<tool>` name) whose server-side
 * tool name matches the union of that skill's includeTools globs.
 */
export declare function skillActivationTargets(declarations: SkillMcpDeclarations, skillName: string, registered: ReadonlyArray<{
    name: string;
    toolName: string;
    server: string;
}>): string[];
export {};
//# sourceMappingURL=skills.d.ts.map