import type { SpecTemplateEntry, TemplateCategory, TemplateComplexity, ListTemplatesResult, CustomTemplateWarning } from '../../types/spec-templates.js';
/**
 * Lists templates from the catalog, optionally filtered by category, search, and complexity.
 * Includes custom user templates from data/global/spec-templates/custom/.
 */
export declare function listTemplates(category?: TemplateCategory, search?: string, complexityScore?: TemplateComplexity, customDir?: string): Promise<{
    result: ListTemplatesResult;
    warnings: CustomTemplateWarning[];
}>;
/**
 * Returns a single template by ID (built-in only, sync).
 */
export declare function findTemplate(templateId: string): SpecTemplateEntry | undefined;
/**
 * Returns a single template by ID, searching built-in and custom templates.
 */
export declare function findTemplateWithCustom(templateId: string, customDir?: string): Promise<SpecTemplateEntry | undefined>;
/**
 * Returns all available categories that have at least one template.
 */
export declare function getAvailableCategories(): TemplateCategory[];
//# sourceMappingURL=query.d.ts.map