export type Direction = '+' | '-'; export type ChangeHandler = (event: { matches: boolean; }) => void; export interface RegistryItem { mql: MediaQueryList; handlers: Set; } export interface Subscription { matches: boolean; unsubscribe: () => void; } export type Registry = { items: Record; subscribe: (query: string, handler: ChangeHandler) => Subscription; };