import { JSX } from 'react'; import { Placement } from '@floating-ui/react'; import { ReactNode } from 'react'; import { RefObject } from 'react'; /** * A presentation-only account menu. The product owns the user, the product * list, the destinations and sign-out; this component never fetches or stores. */ export declare function GameAccountMenu({ user, labels, triggerId, site, products, accountHref, onSignOut, signingOut, defaultTab, className, }: GameAccountMenuProps): ReactNode; export declare interface GameAccountMenuLabels { /** Accessible name of the trigger, final string from the product, e.g. "账号:小鱼". */ trigger: string; /** First tab: the current product's own content, usually the product name. */ siteTab: string; productsTab: string; accountTab: string; /** Badge on the current product. */ current: string; manage: string; signOut: string; } export declare interface GameAccountMenuProps { user: { name: string; email?: string; avatarUrl?: string; }; labels: GameAccountMenuLabels; /** Stable native id of the trigger button, also used for its contour. */ triggerId?: string; /** Product-owned content for the first tab; the tab is omitted when absent. */ site?: ReactNode; /** All products; the tab is omitted when empty. */ products?: readonly GameAccountProduct[]; /** The account center page (security, profile, sign out everywhere). */ accountHref: string; onSignOut: () => void | Promise; /** True while the product signs out; the button shows the pending state. */ signingOut?: boolean; defaultTab?: 'site' | 'products' | 'account'; className?: string; } export declare interface GameAccountProduct { id: string; name: string; description?: string; href: string; /** The product that is showing this menu. It is not a link. */ current?: boolean; } /** Positions an outlet beside a host-owned body, never positions the body itself. * Reuses Floating UI and the source's native dialog; no second modal manager. */ export declare function LiquidAnchor({ source, children, placement, onBoundsChange, }: LiquidAnchorProps): JSX.Element | null; export declare interface LiquidAnchorProps { source: RefObject; children: ReactNode; placement?: Placement; /** A layout observation for host scene-label avoidance, never permission. */ onBoundsChange?(rect: LiquidPresenceRect | null): void; } /** A controlled, non-modal liquid panel. The host still owns every action and * open state; this composition owns placement, dismissal and focus only. */ export declare function LiquidPopover({ open, ...props }: LiquidPopoverProps): JSX.Element | null; export declare interface LiquidPopoverProps { open: boolean; onOpenChange(open: boolean): void; source: RefObject; placement?: LiquidAnchorProps['placement']; title: ReactNode; width?: number; children: ReactNode; } /** A liquid body and its visual gesture. It never creates a model, acquires * media, clicks an app control, or interprets animation as a task receipt. */ export declare function LiquidPresence(props: LiquidPresenceProps): JSX.Element; /** Presentation observations, not a provider/session/task state machine. */ export declare type LiquidPresenceActivity = 'idle' | 'connecting' | 'listening' | 'thinking' | 'speaking' | 'working' | 'error' | 'unknown' | 'disabled'; export declare interface LiquidPresenceProps { activity?: LiquidPresenceActivity; size?: number; target?: LiquidPresenceTarget | null; /** True disables travel but never removes the target explanation. */ reducedMotion?: boolean; /** Explicit host opt-in. A quiet living contour, never an audio observation. * The ordinary component stays still when omitted. */ idleMotion?: 'still' | 'breathe'; /** Material flow only, not task or guidance duration. Clamped to 0.5..1.5. */ motionSpeed?: number; /** Contour/speech detail, clamped to 0.25..1.25. Hit targets never change. */ motionIntensity?: number; /** Small liquid satellites during observed speech; never during idle. */ splashes?: boolean; /** Actual amplitude only. Null/invalid values mean unavailable, not mock audio. */ levelRef?: { readonly current: number | null; }; colorFrom?: string; colorTo?: string; className?: string; /** Human-paced explanation at the destination. The host owns its controls; * this stays until explicit dismissal/target loss, not a reading deadline. */ guideContent?: ReactNode; /** Expanded for review/editing content; still bounded to the visible viewport. */ guideSize?: 'compact' | 'expanded'; /** Pointing at a button dismisses by default. Editor-attached assistance may * opt out so selecting/typing never discards the user's comparison draft. */ dismissOnTargetClick?: boolean; /** Visual dismissal only; never wire this to task cancellation. */ onDismiss?(reason: 'dismissed' | 'unavailable' | 'expired'): void; } /** Geometry only. These rectangles come from the host, never from a model. */ export declare interface LiquidPresenceRect { x: number; y: number; width: number; height: number; } export declare interface LiquidPresenceTarget { /** A new key means a new gesture, even when the target stays the same. */ key: string; label: string; getRect(): LiquidPresenceRect | null; /** Supplies clipping/scroll context and the correct native-dialog portal. */ contextElement?: Element | null; } /** One finite material gesture, not a window, microphone, state machine or * another orb. The real HTML stays still and usable while the perimeter draws. * Uses the SAME opaque fill, goo/gloss and budget as LiquidPresence. */ export declare function LiquidReveal({ children, source, revealKey, variant, reducedMotion, idleMotion, colorFrom, colorTo, motionIntensity, motionSpeed, className, }: LiquidRevealProps): JSX.Element; export declare interface LiquidRevealProps { children: ReactNode; /** Real launcher geometry. Omit for a static inline resource surface. */ source?: RefObject; /** A new explicitly requested presentation, never a token/stream revision. */ revealKey?: string; variant?: 'content' | 'input'; reducedMotion?: boolean; /** Optional slow perimeter flow. Caller must offer a persistent pause control. */ idleMotion?: 'still' | 'breathe'; /** Same palette as the source; appearance only, never provider state. */ colorFrom?: string; colorTo?: string; motionIntensity?: number; motionSpeed?: number; className?: string; } export { }