@@ -127,6 +127,46 @@ export declare function withSentryServerSideErrorGetInitialProps<F extends (...a
127127 getInitialProps : F ,
128128) : ( ...args : Parameters < F > ) => ReturnType < F > extends Promise < unknown > ? ReturnType < F > : Promise < ReturnType < F > > ;
129129
130+ /**
131+ * Wraps a `getServerSideProps` function with Sentry error and performance instrumentation.
132+ *
133+ * @param origGetServerSideProps The `getServerSideProps` function
134+ * @param parameterizedRoute The page's parameterized route
135+ * @returns A wrapped version of the function
136+ */
137+ export declare function wrapGetServerSidePropsWithSentry < F extends ( ...args : any [ ] ) => any > (
138+ origGetServerSideProps : F ,
139+ parameterizedRoute : string ,
140+ ) : ( ...args : Parameters < F > ) => ReturnType < F > extends Promise < unknown > ? ReturnType < F > : Promise < ReturnType < F > > ;
141+
142+ /**
143+ * @deprecated Use `wrapGetServerSidePropsWithSentry` instead.
144+ */
145+ export declare function withSentryGetServerSideProps < F extends ( ...args : any [ ] ) => any > (
146+ origGetServerSideProps : F ,
147+ parameterizedRoute : string ,
148+ ) : ( ...args : Parameters < F > ) => ReturnType < F > extends Promise < unknown > ? ReturnType < F > : Promise < ReturnType < F > > ;
149+
150+ /**
151+ * Wraps a `getStaticProps` function with Sentry error and performance instrumentation.
152+ *
153+ * @param origGetStaticProps The `getStaticProps` function
154+ * @param parameterizedRoute The page's parameterized route
155+ * @returns A wrapped version of the function
156+ */
157+ export declare function wrapGetStaticPropsWithSentry < F extends ( ...args : any [ ] ) => any > (
158+ origGetStaticPropsa : F ,
159+ parameterizedRoute : string ,
160+ ) : ( ...args : Parameters < F > ) => ReturnType < F > extends Promise < unknown > ? ReturnType < F > : Promise < ReturnType < F > > ;
161+
162+ /**
163+ * @deprecated Use `wrapGetStaticPropsWithSentry` instead.
164+ */
165+ export declare function withSentryGetStaticProps < F extends ( ...args : any [ ] ) => any > (
166+ origGetStaticPropsa : F ,
167+ parameterizedRoute : string ,
168+ ) : ( ...args : Parameters < F > ) => ReturnType < F > extends Promise < unknown > ? ReturnType < F > : Promise < ReturnType < F > > ;
169+
130170/**
131171 * Wraps an `app` directory component with Sentry error instrumentation. (Currently only reports errors for server components)
132172 */
0 commit comments