import type { Tool } from './tools/types.js';
export type AgentsSectionKind = 'model' | 'tool';
export interface AgentsScopedSection {
    kind: AgentsSectionKind;
    selector: string;
    content: string;
}
export interface AgentsFileInstructions {
    filePath: string;
    relativePath: string;
    global: string;
    modelSections: AgentsScopedSection[];
    toolSections: AgentsScopedSection[];
    truncated: boolean;
}
export interface AgentsInstructionSet {
    root: string;
    cwd: string;
    files: AgentsFileInstructions[];
}
export declare function findAgentsRoot(cwd?: string): string;
export declare function parseAgentsMarkdown(content: string): {
    global: string;
    modelSections: AgentsScopedSection[];
    toolSections: AgentsScopedSection[];
};
export declare function discoverAgentsInstructions(cwd?: string): AgentsInstructionSet;
export declare function selectorMatches(selector: string, target: string): boolean;
export declare function buildAgentsInstructionsPrompt(cwd: string, model: string): string;
export declare function applyAgentToolInstructions(tools: Tool[], cwd: string, _model: string): Tool[];
export declare function formatAgentsInstructionsReport(cwd: string, model: string, tools?: Tool[]): string;
