import { OptionalThemedProps, ThemeSettings } from './types'; /** * The theme settings in `props.theme` are not considered an API to allow support for fallbacks * and forward compatibility in future versions of `SplunkThemeProvider`. Use this utility to * access `family`, `colorScheme`, and `density` from a component's props. This is useful * in limited migration scenarios. Use `withSplunkTheme` or `useSplunkTheme` instead. * * ```js * import getSettingsFromThemedProps from '@splunk/themes/getSettingsFromThemedProps'; * ... * const { family, colorScheme } = getSettingsFromThemedProps(props); * * ``` * @param {object} props - The themed props passed to a styled-component. * @returns {object} An object consisting of `{ family, colorScheme, density }`. * @public */ declare function getSettingsFromThemedProps(props: OptionalThemedProps): ThemeSettings; export default getSettingsFromThemedProps;