1 | import * as i0 from "@angular/core";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | export interface NbMediaBreakpoint {
|
8 | name: string;
|
9 | width: number;
|
10 | }
|
11 | export declare const DEFAULT_MEDIA_BREAKPOINTS: {
|
12 | name: string;
|
13 | width: number;
|
14 | }[];
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | export declare class NbMediaBreakpointsService {
|
22 | private breakpoints;
|
23 | private breakpointsMap;
|
24 | constructor(breakpoints: any);
|
25 | /**
|
26 | * Returns a configured breakpoint by width
|
27 | * @param width number
|
28 | * @returns {Z|{name: string, width: number}}
|
29 | */
|
30 | getByWidth(width: number): NbMediaBreakpoint;
|
31 | |
32 |
|
33 |
|
34 |
|
35 |
|
36 | getByName(name: string): NbMediaBreakpoint;
|
37 | |
38 |
|
39 |
|
40 |
|
41 | getBreakpoints(): NbMediaBreakpoint[];
|
42 | |
43 |
|
44 |
|
45 |
|
46 | getBreakpointsMap(): {
|
47 | [breakpoint: string]: number;
|
48 | };
|
49 | static ɵfac: i0.ɵɵFactoryDeclaration<NbMediaBreakpointsService, never>;
|
50 | static ɵprov: i0.ɵɵInjectableDeclaration<NbMediaBreakpointsService>;
|
51 | }
|