import React, { AriaAttributes, CSSProperties, MutableRefObject, ReactHTML, ReactNode } from 'react'; import { ButtonProps } from '@typeform/embed'; import { GenericEmbed } from '../utils'; type ButtonComponentBaseProps = { id: string; as?: keyof ReactHTML; buttonProps?: ButtonProps & AriaAttributes; style?: CSSProperties; className?: string; children?: ReactNode; embedRef?: MutableRefObject; }; export type ButtonComponentProps = T & ButtonComponentBaseProps; type CreateFnProps = Omit, keyof ButtonComponentBaseProps>; type CreateFn = (id: string, props: CreateFnProps) => GenericEmbed; declare function makeButtonComponent(createFn: CreateFn, cssFilename: string): ({ id, children, as, style, className, buttonProps, embedRef, ...props }: ButtonComponentProps) => React.JSX.Element; export { makeButtonComponent }; //# sourceMappingURL=make-button-component.d.ts.map