import type { SeedSource, TemplateVariableContext } from './template-source-contracts.js'; /** * Candidate filenames for official external template config entrypoints. */ export declare const EXTERNAL_TEMPLATE_ENTRY_CANDIDATES: readonly ['index.js', 'index.cjs', 'index.mjs']; export declare const EXTERNAL_TEMPLATE_TRUST_WARNING = "External template configs execute trusted JavaScript during scaffolding. Review the template source before using local paths, GitHub repos, or npm packages you do not already trust."; /** * Search a source directory for the first supported external template entry. * * @deprecated Since 0.22.10. Use `findExternalTemplateEntry()` from async * template-source paths. Removal target: not currently scheduled; this sync * compatibility helper remains available until release notes announce a * versioned target. * * @param sourceDir Directory that may contain an external template config entry. * @returns The first matching entry path, or null when no supported entry exists. */ export declare function getExternalTemplateEntry(sourceDir: string): string | null; /** * Search a source directory for a supported external template entry asynchronously. * * @param sourceDir Directory that may contain an external template config entry. * @returns The first matching entry path, or null when no supported entry exists. */ export declare function findExternalTemplateEntry(sourceDir: string): Promise; /** * Load an official external template config and render its seed. * * @param sourceDir Source directory that contains the external template config. * @param context Template render context used for the selected variant. * @param requestedVariant Optional explicit variant override. * @returns A rendered temporary seed directory with optional assets and cleanup. */ export declare function renderCreateBlockExternalTemplate(sourceDir: string, context: TemplateVariableContext, requestedVariant?: string): Promise;