import { CSSObject } from 'styled-components'; import * as CSS from 'csstype'; export declare const Breakpoints: { tablet: number; laptop: number; desktop: number; }; export declare const MediaQueries: { tablet: string; laptop: string; desktop: string; }; type CSSPropertiesMulti = { [P in keyof CSS.Properties]: CSS.Properties[P] | CSS.Properties[P][]; }; type CSSPseudos = { [K in CSS.Pseudos]?: CSSObjectMulti; }; interface CSSObjectMulti extends CSSPropertiesMulti, CSSPseudos { [key: string]: Array | CSSObjectMulti | string | number | undefined; } /** withMedia helper * @usage * ``` * const StyledImg = styled.img(({ theme }) => theme.withMedia({ * display: ['mobileValue', 'tabletValue', 'laptopValue', 'desktopValue'], * })); * ``` */ export declare const withMedia: (styled: CSSObjectMulti) => CSSObject; /** useMatchMedia helper * @usage * ``` * const responsiveType = useMatchMedia(['mobile', 'tablet', 'laptop or desktop'], [deps]) *
{responsiveType}
* ``` */ export declare const useMatchMedia: ([onMobile, onTablet, onLaptop, onDesktop]: [T, T?, T?, T?], dependencies: any[]) => T; export {}; //# sourceMappingURL=match-media.d.ts.map