import type { Template } from '@js-template-engine/types'; /** * Resolves a source argument to the template files it names. * * A file path resolves to itself; a directory resolves to every template * file directly inside it (`.json`, `.ts`, `.js`, `.mjs`, `.cjs`), sorted * by name. Subdirectories are not searched. * * @param source - A template file or a directory of template files. * @returns Absolute paths of the template files to process. */ export declare function resolveTemplateSources(source: string): string[]; /** * Loads a template from a file. * * `.json` files are parsed as JSON. `.ts`, `.js`, `.mjs`, and `.cjs` files * are loaded as modules and must default-export the template. * * @param filePath - Absolute path of the template file. * @returns The template the file defines. */ export declare function loadTemplate(filePath: string): Promise