import { LoaderReturn } from "../../global/use/types.js"; import { useMemo, useRef } from "preact/hooks"; export declare const use: { path(componentUrl: string): (resourcePath: string) => string; dispatch(): false | ((name: Attrs extends import("../../global/types/index.js").SwissAttrs ? import("../../global/types/index.js").SwissEvent : string, payload: import("../../global/types/index.js").DispatchEventPayload, options?: import("../../global/types/index.js").DispatchEventOptions) => boolean); loader(id: string, loader: () => Promise, initial: Initial, deps: unknown[]): LoaderReturn; memo: typeof useMemo; state: typeof import("preact/hooks").useState; effect: typeof import("preact/hooks").useEffect; callback: typeof import("preact/hooks").useCallback; reducer: typeof import("preact/hooks").useReducer; layoutEffect: typeof import("preact/hooks").useLayoutEffect; ref: typeof useRef; id: typeof import("preact/hooks").useId; imperativeHandle: typeof import("preact/hooks").useImperativeHandle; errorBoundary: typeof import("preact/hooks").useErrorBoundary; debugValue: typeof import("preact/hooks").useDebugValue; mount: (fn: import("preact/hooks").EffectCallback) => void; unmount: (fn: import("preact/hooks").EffectCallback) => void; env: () => import("../../global/use/types.js").EnvContext; attrs(map: Map_1): import("../../global/use/types.js").AttrsReturn; }; //# sourceMappingURL=index.d.ts.map