import { Manifest } from './parser.js';

/**
 * Api for loading manifest.
 */
interface ManifestLoaderInterface {
    /**
     * Load manifest from file with specified {@link path}.
     *
     * @param path Path to manifest.
     *
     * @returns Parsed manifest.
     *
     * @throws Error if manifest file is not found.
     * @throws Error If manifest data is invalid.
     */
    load(path: string): Manifest;
}

export type { ManifestLoaderInterface };
