import type { ModelManifest } from './types.js'; declare const DEFAULT_MANIFEST_FILENAME = "model.yaml"; declare const DEFAULT_ENTRY_FILE = "index.dlang"; /** * Checks if a file exists at the given path. */ export declare function fileExists(targetPath: string): Promise; /** * Finds the nearest model.yaml manifest by walking up from startPath. * * @param startPath - Directory to start searching from * @returns Absolute path to model.yaml, or undefined if not found */ export declare function findNearestManifest(startPath: string): Promise; /** * Finds the workspace root (directory containing model.yaml). * * @param startPath - Directory to start searching from * @returns Absolute path to workspace root, or undefined if no manifest found */ export declare function findWorkspaceRoot(startPath: string): Promise; /** * Reads and parses a model.yaml manifest. * * @param manifestPath - Absolute path to model.yaml * @returns Parsed manifest, or undefined if file doesn't exist * @throws Error if file exists but cannot be parsed */ export declare function readManifest(manifestPath: string): Promise; /** * Reads the entry point from a manifest file. * * @param manifestPath - Absolute path to model.yaml * @returns Entry file path (relative), defaults to 'index.dlang' */ export declare function readEntryFromManifest(manifestPath: string): Promise; /** * Gets the absolute entry file path for a manifest. * * @param manifestPath - Absolute path to model.yaml * @returns Absolute path to the entry file */ export declare function getEntryPath(manifestPath: string): Promise; /** * Discovers all manifest files within given directories by walking up the * directory tree from each directory to the filesystem root. * * Uses {@link findNearestManifest} for each directory, which walks up ancestor * directories until a manifest is found or the filesystem root is reached. * * @param directories - Array of absolute directory paths to search * @returns Array of manifest info objects */ export declare function findManifestsInDirectories(directories: string[]): Promise>; /** Default manifest filename */ export { DEFAULT_MANIFEST_FILENAME, DEFAULT_ENTRY_FILE };