astro-ghostcms/.pnpm-store/v3/files/3f/69061d1b1aae1b9ccabbbde64d9...

15 lines
691 B
Plaintext

import type { AstroAdapterFeatures, 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, adapterFeatures: AstroAdapterFeatures | undefined, logger: Logger): ValidationResult;
export {};