import type { EndpointInterface } from '@rest-hooks/react'; import type { FetchShape } from './shapes.js'; type ShapeTypeToSideEffect = T extends 'read' | undefined ? undefined : true; export default function shapeToEndpoint>>(shape: Shape): Shape['fetch'] extends (...args: any) => Promise ? EndpointInterface> & Shape['options'] : Shape['options'] & { key: Shape['getFetchKey']; }; export {}; //# sourceMappingURL=adapter.d.ts.map