/**
 * Marketplace-free local template library — bundled workflows, preview, import/export.
 */
import type { Database } from "bun:sqlite";
import { BUILTIN_TEMPLATES, TEMPLATE_LIBRARY_SCHEMA, initBuiltinTemplates, type BuiltinTemplate } from "../db/builtin-templates.js";
import { previewTemplate, exportTemplate } from "../db/templates.js";
export { TEMPLATE_LIBRARY_SCHEMA, BUILTIN_TEMPLATES };
export interface TemplateLibraryEntry {
    schema_version: typeof TEMPLATE_LIBRARY_SCHEMA;
    name: string;
    version: string;
    category: BuiltinTemplate["category"];
    description: string;
    task_count: number;
    variables: BuiltinTemplate["variables"];
    installed: boolean;
}
export interface TemplateLibraryCatalog {
    schema_version: typeof TEMPLATE_LIBRARY_SCHEMA;
    exported_at: string;
    templates: TemplateLibraryEntry[];
}
export interface TemplateLibraryExport {
    schema_version: typeof TEMPLATE_LIBRARY_SCHEMA;
    exported_at: string;
    template: ReturnType<typeof exportTemplate>;
}
export declare function listTemplateLibrary(db?: Database): TemplateLibraryEntry[];
export declare function getBuiltinTemplate(name: string): BuiltinTemplate | null;
export declare function previewBuiltinTemplate(name: string, variables?: Record<string, string>): {
    name: string;
    tasks: Array<{
        position: number;
        title: string;
        priority?: string;
    }>;
} | null;
export declare function installTemplateLibrary(db?: Database): ReturnType<typeof initBuiltinTemplates>;
export declare function exportTemplateLibraryCatalog(path?: string, db?: Database): TemplateLibraryCatalog;
export declare function exportInstalledTemplate(name: string, db?: Database): TemplateLibraryExport | null;
export declare function importTemplateFromFile(path: string, db?: Database): {
    id: string;
    name: string;
};
export declare function previewInstalledTemplate(name: string, variables?: Record<string, string>, db?: Database): ReturnType<typeof previewTemplate> | null;
export declare function getTemplateLibraryDocs(): string;
//# sourceMappingURL=template-library.d.ts.map