/** * Build `` XML block for the system prompt. * * Keeps the catalog bounded and deterministic (prompt-cache friendly): * 1. Sorts inline skills by pinned -> origin.priority desc -> name asc. * 2. Renders full `` blocks within budget, then falls back to compact * `` entries before omitting skills. * 3. Appends a `` summary whenever skills are omitted or deferred. */ import type { Skill, SkillsConfig } from './types.js'; export declare const DEFAULT_MAX_SKILLS_IN_PROMPT = 50; export declare const DEFAULT_MAX_SKILLS_PROMPT_CHARS = 12000; export declare const DEFAULT_MAX_DESCRIPTION_CHARS_IN_PROMPT = 140; export interface FormatSkillsForPromptOptions { /** Explicit skill names visible in this context. Omitted means all enabled skills; empty means no visible skills. */ skillAllowlist?: string[]; /** When set (including empty array), applies tool gating from skill frontmatter. */ registeredToolNames?: string[]; } export declare function selectSkillsVisibleInPrompt(skills: Skill[], skillsConfig?: SkillsConfig, options?: FormatSkillsForPromptOptions): Skill[]; export declare function compareSkillsForPrompt(left: Skill, right: Skill, skillsConfig?: SkillsConfig): number; export declare function formatSkillsForPrompt(skills: Skill[], skillsConfig?: SkillsConfig, options?: FormatSkillsForPromptOptions): string;