1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- export declare const VALID_LOADERS: readonly ["default", "imgix", "cloudinary", "akamai", "custom"];
- export declare type LoaderValue = typeof VALID_LOADERS[number];
- export declare type RemotePattern = {
-
- protocol?: 'http' | 'https';
-
- hostname: string;
-
- port?: string;
-
- pathname?: string;
- };
- declare type ImageFormat = 'image/avif' | 'image/webp';
- export declare type ImageConfigComplete = {
-
- deviceSizes: number[];
-
- imageSizes: number[];
-
- loader: LoaderValue;
-
- path: string;
-
- domains: string[];
-
- disableStaticImages: boolean;
-
- minimumCacheTTL: number;
-
- formats: ImageFormat[];
-
- dangerouslyAllowSVG: boolean;
-
- contentSecurityPolicy: string;
-
- remotePatterns: RemotePattern[];
-
- unoptimized: boolean;
- };
- export declare type ImageConfig = Partial<ImageConfigComplete>;
- export declare const imageConfigDefault: ImageConfigComplete;
- export {};
|