import { ClientMethods } from "./types/client.js";
import { ResourceElement } from "@assistant-ui/tap";

//#region src/tapClientResource.d.ts
declare const getClientState: (client: ClientMethods) => any;
type InferClientState<TMethods> = TMethods extends {
  getState: () => infer S;
} ? S : undefined;
declare const tapClientResource: <TMethods extends ClientMethods>(element: ResourceElement<TMethods>) => {
  state: InferClientState<TMethods>;
  methods: TMethods;
  key: string | number | undefined;
};
//#endregion
export { getClientState, tapClientResource };
//# sourceMappingURL=tapClientResource.d.ts.map