/** * This is the global state for the OL-Provider component * with this state is accessable without directly passing * it down as a prop. */ import { LitElement } from 'lit'; interface StoreElement extends LitElement, ProviderStore { store: ProviderStore; } /** * Function to update all of the components using the store. * * @param key Key of a state property within the LitElement * @param value The value of the property should be changed to */ export declare const dispatchUpdate: (key: K, value: StoreElement[K]) => void; /** * Function that returns the store * * @param element A lit element to bind the store to. * @returns The store */ export declare const useStore: (element: LitElement) => ProviderStore; export declare const accessStore: (key: K) => ProviderStore[K]; export interface ProviderStore { activeElement: HTMLElement | null; reader: boolean; readerSpeed: number; moreToolbar: boolean; highlightColor: string; highlight: boolean; scroll_: number; } export {}; //# sourceMappingURL=store.d.ts.map