import { placeBox } from './place.js'; /** * Cambia los defaults de todos los paneles que se creen a partir de acá. * Pensado para fijar el ritmo de la app en un solo lugar —`duration`, * `closeDuration`, `ease`, `closeEase`— sin repetirlo en cada componente. * * No toca los que ya existen: el core copia sus opciones al crearse. * Solo acepta claves que el core conoce; una mal escrita se ignora en vez de * quedarse ahí sin efecto y sin aviso. */ export function setDefaults(overrides: any): void; /** * @param {{ box: HTMLElement | (() => HTMLElement), content?, overlay?, flyingText? }} els * @param {Partial} [options] */ export function createMorph(els: { box: HTMLElement | (() => HTMLElement); content?: any; overlay?: any; flyingText?: any; }, options?: Partial): { open: (origin: HTMLElement | string | Rect, label?: string | Node, overrides?: Partial) => Promise; close: (fling?: { x: number; y: number; }) => Promise; changeView: (mutate: any) => Promise; /** El contenido cambió de alto (ej. apareció un error). */ resync: (duration: any) => void; destroy(): void; readonly state: "closed" | "opening" | "open" | "closing"; }; export { placeBox }; export type Rect = import('./place.js').Rect; export type Geom = import('./place.js').Geom; declare namespace DEFAULTS { let placement: "top" | "bottom" | "center" | "drawer-left"; let align: "left" | "center" | "right"; let gap: number; let margin: number; let width: null; let radius: null; let duration: number; let closeDuration: number; let ease: string; let closeEase: string; let contentBlur: boolean; let contentAnimation: "slide-up" | "slide-down" | "scale" | "fade" | "none"; let contentStagger: boolean; let mobileBreakpoint: number; let fullscreenOnMobile: boolean; let labelOffsetX: number; let flyingMode: "text" | "box" | null; let originRadius: number; let hideOrigin: boolean | null; let swipeToClose: boolean; let swipeThreshold: number; let closeOnEscape: boolean; let trapFocus: boolean; let restoreFocus: boolean; let lockScroll: boolean; let ariaLabel: null; let ariaLabelledby: null; let mount: null | (() => void | Promise); let unmount: null | (() => void); let onGeom: null | ((g: Geom) => void); let onState: null | ((state: "closed" | "opening" | "open" | "closing") => void); }