Files
NapCatQQ/.pnpm-store/v3/files/62/e4920d3c42b26b3ee31cf67486a62a4d55aec72aa471bf9d5569989f05b207a4ac22c17ad6434d9631d80b6a5a6228c0dfa8fd901037bcc70c4acedae813fc
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

19 lines
1.2 KiB
Plaintext

import { As, RightJoinProps, PropsOf, InternalForwardRefRenderFunction } from './types.mjs';
import * as React from 'react';
import '@react-types/shared';
declare function forwardRef<Component extends As, Props extends object, OmitKeys extends keyof any = never>(component: React.ForwardRefRenderFunction<any, RightJoinProps<PropsOf<Component>, Props> & {
as?: As;
}>): InternalForwardRefRenderFunction<Component, Props, OmitKeys>;
declare const toIterator: (obj: any) => any;
declare const mapPropsVariants: <T extends Record<string, any>, K extends keyof T>(props: T, variantKeys?: K[], removeVariantProps?: boolean) => readonly [Omit<T, K> | T, Pick<T, K> | {}];
declare const mapPropsVariantsWithCommon: <P extends Record<any, any>, VK extends keyof P, CK extends keyof P = never>(originalProps: P, variantKeys: VK[], commonKeys?: CK[]) => readonly [Omit<P, Exclude<VK, CK>>, Pick<P, VK>];
/**
* Checks if a component is a HeroUI component.
* @param component - The component to check.
* @returns `true` if the component is a HeroUI component, `false` otherwise.
*/
declare const isHeroUIEl: (component: React.ReactComponentElement<any>) => boolean;
export { forwardRef, isHeroUIEl, mapPropsVariants, mapPropsVariantsWithCommon, toIterator };