import React from 'react'; import { DefaultProps, Selectors } from '../../styles'; import useStyles from './spoiler.styles'; export type SpoilerStylesNames = Selectors; export interface SpoilerProps extends DefaultProps, React.ComponentPropsWithoutRef<'div'> { variant?: string; /** Max height of visible content, when this point is reached spoiler appears */ maxHeight: number; /** Label for close spoiler action */ hideLabel: React.ReactNode; /** Label for open spoiler action */ showLabel: React.ReactNode; /** Get ref of spoiler toggle button */ controlRef?: React.ForwardedRef; /** Initial spoiler state, true to wrap content in spoiler, false to show content without spoiler, opened state will be updated on mount */ initialState?: boolean; /** Spoiler reveal transition duration in ms, 0 or null to turn off animation */ transitionDuration?: number; } export declare const Spoiler: React.ForwardRefExoticComponent>;