import { PropsWithChildren } from "react"; import { InferSerializable } from "adonis-cockpit/types"; import { BaseResource } from "adonis-cockpit"; type State = { resource: InferSerializable; }; declare const ResourceProvider: ({ children, resource: name, }: PropsWithChildren<{ resource: string; }>) => import("react/jsx-runtime").JSX.Element; declare function useResource(name?: string): State; export { ResourceProvider, useResource };