import type { CSSProperties } from "../CSSProperties"; export type MarginLonghands = Required< Pick< CSSProperties, "marginTop" | "marginRight" | "marginBottom" | "marginLeft" > >; export function margin( all: NonNullable, ): MarginLonghands; export function margin( vertical: NonNullable, horizontal: NonNullable, ): MarginLonghands; export function margin( top: NonNullable, horizontal: NonNullable, bottom: NonNullable, ): MarginLonghands; export function margin( top: NonNullable, right: NonNullable, bottom: NonNullable, left: NonNullable, ): MarginLonghands; export function margin( top: NonNullable, right: NonNullable = top, bottom: NonNullable = top, left: NonNullable = right, ): MarginLonghands { return { marginTop: top, marginRight: right, marginBottom: bottom, marginLeft: left, }; }