/** * vue-vrm * * @description Vrm viewer component for Vue 3 / WebComponents. * @author Logue * @license MIT * @version 0.4.0 * @see {@link https://github.com/logue/vue-vrm} */ import { type ComputedRef, type Ref } from 'vue'; import type { CanvasSize, CanvasSizeOptions } from '../types/CanvasSizeTypes.js'; /** * Manage DOM sizing for VrmCanvas: derives the renderer's pixel size from the * container's measured width (via ResizeObserver) and exposes the CSS style * used to size the container element. * * - Fixed (`width` is a number): the container is `width` px wide, height derived from the ratio. * - Fluid (`width` is a CSS length such as `'100%'`): the container takes that width, * the height follows through CSS `aspect-ratio`, and the renderer is sized from * the measured width. * * @param container The container element to observe and size. * @param options Reactive getters for width / maxWidth / aspectRatio props. * @returns Reactive `size`, `containerStyle`, and `init` / `dispose` lifecycle functions. */ export declare function useCanvasSize(container: Readonly>, options: CanvasSizeOptions): { size: ComputedRef; containerStyle: ComputedRef>; init: () => void; dispose: () => void; };