/** * @file responsive.ts * Utilities for responsive chart sizing */ import type { Dispatch } from '@composable-svelte/core'; import type { ChartAction } from '../types/chart.types'; /** * Create a ResizeObserver to watch container size changes * and dispatch resize actions to the store */ export declare function createResizeObserver(element: HTMLElement, dispatch: Dispatch>): ResizeObserver; /** * Calculate responsive dimensions based on container and aspect ratio */ export declare function calculateDimensions(container: HTMLElement, aspectRatio?: number): { width: number; height: number; }; /** * Debounce resize events to avoid too many dispatches */ export declare function debounce any>(fn: T, delay: number): (...args: Parameters) => void; //# sourceMappingURL=responsive.d.ts.map