import type { OverridableStringUnion } from '@mui/types'; export type SpacingOptions = number | string | Spacing | ((abs: number) => number | string) | ((abs: number | string) => number | string) | ReadonlyArray; /** * Augment this interface to register named keys accepted by `theme.spacing()` * so they surface in autocompletion (e.g. a preset's spacing-scale steps). * Type-level only: unregistered strings remain valid and pass through as raw CSS. * Unlike `BreakpointOverrides`, a registered key cannot be removed again by a * later `false` — interface merging requires one type per member. */ export interface SpacingKeyOverrides {} export type SpacingKey = OverridableStringUnion; export type SpacingArgument = number | SpacingKey | string & {}; export interface Spacing { (): string; (value: SpacingArgument): string; (topBottom: SpacingArgument, rightLeft: SpacingArgument): string; (top: SpacingArgument, rightLeft: SpacingArgument, bottom: SpacingArgument): string; (top: SpacingArgument, right: SpacingArgument, bottom: SpacingArgument, left: SpacingArgument): string; } export default function createSpacing(spacingInput?: SpacingOptions, transform?: Spacing | ((abs: number | string) => number | number) | (() => undefined)): Spacing;