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