27 lines
1.5 KiB
TypeScript
27 lines
1.5 KiB
TypeScript
import type { SharpImageServiceConfig } from '../assets/services/sharp.js';
|
|
import type { MemoryCacheProviderOptions } from '../core/cache/memory-provider.js';
|
|
import type { CacheProviderConfig } from '../core/cache/types.js';
|
|
import type { ImageServiceConfig } from '../types/public/index.js';
|
|
export { fontProviders } from '../assets/fonts/providers/index.js';
|
|
export { mergeConfig } from '../core/config/merge.js';
|
|
export { validateConfig } from '../core/config/validate.js';
|
|
export { envField } from '../env/config.js';
|
|
export { defineConfig, getViteConfig } from './index.js';
|
|
export { sessionDrivers } from '../core/session/drivers.js';
|
|
/**
|
|
* Return the configuration needed to use the Sharp-based image service
|
|
*/
|
|
export declare function sharpImageService(config?: SharpImageServiceConfig): ImageServiceConfig;
|
|
/**
|
|
* Return the configuration needed to use the passthrough image service. This image services does not perform
|
|
* any image transformations, and is mainly useful when your platform does not support other image services, or you are
|
|
* not using Astro's built-in image processing.
|
|
* See: https://docs.astro.build/en/guides/images/#configure-no-op-passthrough-service
|
|
*/
|
|
export declare function passthroughImageService(): ImageServiceConfig;
|
|
/**
|
|
* Return the configuration needed to use the built-in in-memory LRU cache provider.
|
|
* This is a runtime-agnostic provider suitable for single-instance deployments.
|
|
*/
|
|
export declare function memoryCache(config?: MemoryCacheProviderOptions): CacheProviderConfig<MemoryCacheProviderOptions>;
|