UNPKG

bits-ui

Version:

The headless components for Svelte.

16 lines (15 loc) 753 B
import { type DOMContext, type ReadableBox, type WritableBox } from "svelte-toolbelt"; import type { PinInputRootPropsWithoutHTML } from "./types.js"; type UsePasswordManagerBadgeProps = { containerRef: WritableBox<HTMLElement | null>; inputRef: WritableBox<HTMLInputElement | null>; pushPasswordManagerStrategy: ReadableBox<PinInputRootPropsWithoutHTML["pushPasswordManagerStrategy"]>; isFocused: ReadableBox<boolean>; domContext: DOMContext; }; export declare function usePasswordManagerBadge({ containerRef, inputRef, pushPasswordManagerStrategy, isFocused, domContext, }: UsePasswordManagerBadgeProps): { readonly hasPwmBadge: boolean; readonly willPushPwmBadge: boolean; PWM_BADGE_SPACE_WIDTH: "40px"; }; export {};