Files
NapCatQQ/.pnpm-store/v3/files/77/b119014769def8c30a8ea58596d31082815e4c0cfa1486d80594f913a393046243dff16a1b084979cac1a0aa669a7d0ec48f306e938653dd473bd86b01052c
T
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.3 KiB
Plaintext

import { As, RightJoinProps, PropsOf, InternalForwardRefRenderFunction } from './types.js';
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[] | undefined, removeVariantProps?: boolean) => readonly [T | Omit<T, K>, {} | 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[] | undefined) => 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 };