import { Context } from "./context"; import { HasCSSSymbol } from "./css"; export interface AttributeConverter { (attr: string | null): T; } export declare function useAttribute(name: string): string | null; export declare function useAttribute(name: string, converter: AttributeConverter): T; export declare const useProperty: (name: string) => T; export declare const useDispatchEvent: (name: string, eventInit?: EventInit) => (detail: T) => void; export declare const useStyle: (cssCreator: () => HasCSSSymbol) => undefined; export declare const useRef: (initialValue: T | null) => { current: T | null; }; export declare const useState: (initialState: T | (() => T)) => [T, (t: T | ((s: T) => T)) => void]; export declare const useReducer: (reducer: (state: S, action: A) => S, initialState: S) => [S, (action: A) => void]; export declare const useContext: (context: Context) => T | undefined; export declare const useEffect: (handler: () => void | (() => void), deps: unknown[]) => undefined; export declare const useMemo: (fn: () => T, deps: unknown[]) => T; export declare const useCallback: (callback: (a: A) => R, deps: unknown[]) => (a: A) => R;