astro-ghostcms/.pnpm-store/v3/files/47/bb5e21ff41c17629e79c3cc94f5...

15 lines
618 B
Plaintext

import type { AstroConfig, AstroFeatureMap } from '../@types/astro.js';
import type { Logger } from '../core/logger/core.js';
type ValidationResult = {
[Property in keyof AstroFeatureMap]: boolean;
};
/**
* Checks whether an adapter supports certain features that are enabled via Astro configuration.
*
* If a configuration is enabled and "unlocks" a feature, but the adapter doesn't support, the function
* will throw a runtime error.
*
*/
export declare function validateSupportedFeatures(adapterName: string, featureMap: AstroFeatureMap, config: AstroConfig, logger: Logger): ValidationResult;
export {};