import { CSSObject, Interpolation, RuleSet } from 'styled-components'; import { BreakpointName } from '../tokens/breakpoints'; /** * The only way to write a media query. Widths come from tokens/breakpoints.ts. * * breakpoint.Medium`…` from 768px up (min-width: 768px) * breakpoint.below.Medium`…` strictly below 768px (not all and (min-width: 768px), the exact complement of breakpoint.Medium) * breakpoint.max.Medium`…` 768px and below (max-width: 768px, inclusive) * breakpoint.query.up.Medium '(min-width: 768px)' strings for matchMedia / useMediaQuery (also .below and .max) * breakpoint.sizes.Medium '768px', for the rare JS comparison * * `below` and `max` differ at exactly the breakpoint width (768px is a real tablet width): pick the one the layout needs. */ type MediaTemplate =
(first: TemplateStringsArray | CSSObject, ...interpolations: Interpolation
[]) => RuleSet
; export declare const breakpoint: { below: Record<"Small" | "Mobile" | "Medium" | "MLarge" | "Large" | "XLarge" | "Wide" | "XXLarge", MediaTemplate>; max: Record<"Small" | "Mobile" | "Medium" | "MLarge" | "Large" | "XLarge" | "Wide" | "XXLarge", MediaTemplate>; query: { up: Record<"Small" | "Mobile" | "Medium" | "MLarge" | "Large" | "XLarge" | "Wide" | "XXLarge", string>; below: Record<"Small" | "Mobile" | "Medium" | "MLarge" | "Large" | "XLarge" | "Wide" | "XXLarge", string>; max: Record<"Small" | "Mobile" | "Medium" | "MLarge" | "Large" | "XLarge" | "Wide" | "XXLarge", string>; }; sizes: { readonly Small: "320px"; readonly Mobile: "450px"; readonly Medium: "768px"; readonly MLarge: "992px"; readonly Large: "1200px"; readonly XLarge: "1440px"; readonly Wide: "1920px"; readonly XXLarge: "2560px"; }; Small: MediaTemplate; Mobile: MediaTemplate; Medium: MediaTemplate; MLarge: MediaTemplate; Large: MediaTemplate; XLarge: MediaTemplate; Wide: MediaTemplate; XXLarge: MediaTemplate; }; export type Breakpoint = BreakpointName; export {};