import { Maybe } from '../utils/types'; import { RefObject } from 'react'; import { GlobalStyle, Style } from './style'; export declare type Store = { rules: { style: Style; context?: { target?: RefObject; }; }[]; globalStyle: GlobalStyle; cursor: Maybe; }; declare const Provider: ({ children }: { children: import("react").ReactNode; }) => JSX.Element, useStore: { (): Store; (selector: (store: Store) => SelectorOutput): SelectorOutput; }, useStoreDispatch: { (): (payload: Partial | ((previousValue: Partial) => Partial)) => void; (key: Key): (payload: Store[Key] extends infer T ? T extends Store[Key] ? T extends Function ? never : T | ((previousValue: T) => T) : never : never) => void; }, getState: () => Store, subscribe: (callback: (state: Store) => void) => () => boolean; export declare const setGlobalStyle: (property: GlobalStyle | ((previousValue: GlobalStyle) => GlobalStyle)) => void; export declare const setRules: (property: { style: Style; context?: { target?: RefObject | undefined; } | undefined; }[] | ((previousValue: { style: Style; context?: { target?: RefObject | undefined; } | undefined; }[]) => { style: Style; context?: { target?: RefObject | undefined; } | undefined; }[])) => void; export declare const setCursor: (property: HTMLElement | ((previousValue: undefined) => undefined) | ((previousValue: null) => null) | ((previousValue: HTMLElement) => HTMLElement) | null | undefined) => void; export { Provider, useStore, useStoreDispatch, getState, subscribe };