import { As, ChakraComponent, ChakraStyledOptions, SystemStyleObject } from '@chakra-ui/react'; import { DOMElements } from '@chakra-ui/system/dist/declarations/src/system.utils'; import { CSSObject, FunctionInterpolation } from '@emotion/styled'; import { IBox } from "./types"; export declare const shouldForwardProp: (prop: string) => boolean; declare type StyleResolverProps = SystemStyleObject & { __css?: SystemStyleObject; sx?: SystemStyleObject; theme: any; css?: CSSObject; }; interface GetStyleObject { (options: { baseStyle?: SystemStyleObject | ((props: StyleResolverProps) => SystemStyleObject); }): FunctionInterpolation; } export declare const toCSSObject: GetStyleObject; export declare function styled(component: T, options?: ChakraStyledOptions): ChakraComponent; export declare type HTMLChakraComponents = { [Tag in DOMElements]: ChakraComponent; }; declare type ChakraFactory = { (component: T, styles?: IBox): ChakraComponent; }; export declare const castle: ChakraFactory & HTMLChakraComponents; export {};