export { b as ConductorStats, c as SubscriberPriority, d as SubscriberStat, g as getConductor } from './conductor-D83xroU5.cjs'; /** * The motion devtools overlay — a live readout of what the runtime is doing * to your frame. * * This exists because the runtime's whole value is invisible. "One rAF loop" * and "we shed decorative work under load" are claims until you can watch the * numbers move. It answers the question no component library can answer: * **which effect on this page is eating the frame?** * * Design constraints it holds itself to: * - Zero dependencies, zero framework. It is a DOM function; call it from a * React effect, a Vue `onMounted`, or the console. * - Shadow DOM, so no page stylesheet can reach in and no style of ours can * leak out. * - It refreshes at 5Hz and writes through `textContent` against nodes built * once. A profiler that shows up in its own profile is a bad profiler — * though it does list itself in the table rather than hiding. * - It subscribes as `decorative`, so it is shed before the work it measures. * An instrument that outranks its subject distorts the reading. * - It is a separate entry point (`@vectorvesper/motion/devtools`), so it * only reaches a bundle that explicitly imports it. */ type DevtoolsCorner = "top-left" | "top-right" | "bottom-left" | "bottom-right"; interface DevtoolsOptions { /** Where to dock the panel. Default `"bottom-right"`. */ position?: DevtoolsCorner; /** Start with the subscriber table open. Default `true`. */ expanded?: boolean; /** Refreshes per second. Default `5`. */ hz?: number; /** Node to attach the host element to. Default `document.body`. */ container?: HTMLElement; } /** * Mount the devtools overlay. Returns a function that removes it. * * ```ts * import { mountDevtools } from "@vectorvesper/motion/devtools"; * * if (process.env.NODE_ENV !== "production") mountDevtools(); * ``` * * In React, call it from an effect and return the result: * * ```tsx * useEffect(() => mountDevtools({ position: "bottom-left" }), []); * ``` */ declare function mountDevtools(options?: DevtoolsOptions): () => void; export { type DevtoolsCorner, type DevtoolsOptions, mountDevtools };