import type { ArrayValue, RemoveAfterSeparator, RemoveBeforeSeparator, ToNumber, } from './common'; import type { config } from '@/theme/_config'; import type { staticGutterStyles } from '@/theme/gutters'; export type Gutters = GapGutters & MarginGutters & PaddingGutters & typeof staticGutterStyles; type GapGutters = { [key in Gaps]: { gap: ToNumber>; }; }; type Gaps = `gap_${ArrayValue}`; type MarginGutters = { [key in MarginKeys]: Record< Extract, Margins>, ToNumber> >; }; type MarginKeys = `${Margins}_${ArrayValue}`; type Margins = | 'margin' | 'marginBottom' | 'marginHorizontal' | 'marginLeft' | 'marginRight' | 'marginTop' | 'marginVertical'; type PaddingGutters = { [key in PaddingKeys]: Record< Extract, Paddings>, ToNumber> >; }; type PaddingKeys = `${Paddings}_${ArrayValue}`; type Paddings = | 'padding' | 'paddingBottom' | 'paddingHorizontal' | 'paddingLeft' | 'paddingRight' | 'paddingTop' | 'paddingVertical';