UNPKG

522 BTypeScriptView Raw
1import { type Dict } from "../utils";
2export interface UseBreakpointOptions {
3 fallback?: string;
4 ssr?: boolean;
5 getWindow?: () => typeof window;
6 breakpoints?: string[];
7}
8export declare function useBreakpoint(options?: UseBreakpointOptions): string;
9export type UseBreakpointValueOptions = Omit<UseBreakpointOptions, "breakpoints">;
10type Value<T> = Dict<T> | Array<T | null>;
11export declare function useBreakpointValue<T = any>(value: Value<T>, opts?: UseBreakpointValueOptions): T | undefined;
12export {};