export interface TemplateEntry {
    name: string;
    path: string;
    preview: string;
    scope: 'project' | 'global';
}
export interface TemplateManagerRoots {
    projectRoot: string;
    homeDirectory: string;
    projectDirectory?: string;
    globalDirectory?: string;
}
/**
 * TemplateManager — save, load, list, delete and expand prompt templates.
 *
 * Storage search order:
 * - project templates
 * - global templates
 *
 * Variable syntax:
 * - {{var_name}} named variable
 * - {{1}}, {{2}} positional argument (1-based)
 * - {{template:name}} inline template expansion (max depth 3)
 */
export declare class TemplateManager {
    private readonly globalDir;
    private readonly projectDir;
    constructor(roots: TemplateManagerRoots);
    save(name: string, content: string): void;
    load(name: string): string | null;
    list(): TemplateEntry[];
    delete(name: string): boolean;
    expand(template: string, args: Record<string, string>, depth?: number): string;
}
export declare function parseTemplateArgs(args: string[]): Record<string, string>;
//# sourceMappingURL=manager.d.ts.map