@stacksjs/stx
Version:
A performant UI Framework. Powered by Bun.
30 lines • 822 B
TypeScript
import { type ImageFormat, } from './processor';
import type { CustomDirective } from '../types';
/**
* Clear the image cache
*/
export declare function clearImageCache(): void;
/**
* Create the @image directive
*/
export declare function createImageDirective(): CustomDirective;
/**
* The @image directive instance
*/
export declare const imageDirective: unknown;
// ============================================================================
// Types
// ============================================================================
export declare interface ImageDirectiveOptions {
width?: number
height?: number
quality?: number
lazy?: boolean
formats?: ImageFormat[]
widths?: number[]
sizes?: string
class?: string
style?: string
priority?: boolean
placeholder?: 'blur' | 'color' | 'none'
}