import ImageKit from 'imagekit-javascript'; import PropTypes, { InferProps } from 'prop-types'; const Props = { publicKey: PropTypes.string, urlEndpoint: PropTypes.string, authenticator: PropTypes.func }; export const IKContextProps = { ...Props, transformationPosition: PropTypes.oneOf(['path', 'query']), }; export const IKContextExtractedProps = { ...IKContextProps, ikClient: PropTypes.instanceOf(ImageKit), }; export type IKContextProps = InferProps & { urlEndpoint?: string; }; export type IKContextBaseProps = InferProps; export type IKContextExtractedProps = InferProps & { urlEndpoint?: string; }; export default Props;