UNPKG

astro

Version:

Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

11 lines (10 loc) 565 B
import type { GetImageResult, ImageLayout, LocalImageProps, RemoteImageProps } from '../types.js'; export declare function addCSSVarsToStyle(vars: Record<string, string | false | undefined>, styles?: string | Record<string, any>): string; export declare function applyResponsiveAttributes<T extends LocalImageProps<unknown> | RemoteImageProps<unknown>>({ layout, image, props, additionalAttributes, }: { layout: Exclude<ImageLayout, 'none'>; image: GetImageResult; additionalAttributes: Record<string, any>; props: T; }): { [x: string]: any; };