export class UniversalService { constructor(props?: {}); _store: any; findByKey: (attrName: any, key: any, keyValue: any) => any; findById: (attrName: any, id: any) => any; findAttributeValue: (attrName: any) => any; update: (data: any, action: any) => void; add: (data: any, action: any) => void; /** * Sends a JSON request through the active fetch implementation. * @param {string} url The request URL. * @param {*} data The JSON request body. * @param {Function|null} action The optional store action creator. * @param {boolean} dispatchMethod Whether to dispatch the parsed response data. * @param {string} method The HTTP method. * @param {AbortSignal|null} signal The request cancellation signal. * @param {object} [options] Optional headers, responseType ('response', 'data' or 'blob'), and notify for data/blob messages. * @returns {Promise<*>} JSON, validated envelope data, a blob with filename, or an unread Response. */ _request(url: string, data: any, action: Function | null, dispatchMethod: boolean, method: string, signal: AbortSignal | null, options?: object): Promise; /** * Sends a PUT request. * @param {string} url The request URL. * @param {*} data The JSON request body. * @param {Function|null} action The optional store action creator. * @param {boolean} [dispatchMethod] Whether to dispatch the response data. * @param {AbortSignal|null} [signal] The request cancellation signal. * @param {object} [options] Optional headers, responseType ('response', 'data' or 'blob'), and notify for data/blob messages. * @returns {Promise<*>} JSON, validated envelope data, a blob with filename, or an unread Response. */ put(url: string, data: any, action: Function | null, dispatchMethod?: boolean, signal?: AbortSignal | null, options?: object): Promise; /** * Sends a POST request. * @param {string} url The request URL. * @param {*} data The JSON request body. * @param {Function|null} action The optional store action creator. * @param {boolean} [dispatchMethod] Whether to dispatch the response data. * @param {AbortSignal|null} [signal] The request cancellation signal. * @param {object} [options] Optional headers, responseType ('response', 'data' or 'blob'), and notify for data/blob messages. * @returns {Promise<*>} JSON, validated envelope data, a blob with filename, or an unread Response. */ post(url: string, data: any, action: Function | null, dispatchMethod?: boolean, signal?: AbortSignal | null, options?: object): Promise; /** * Sends a DELETE request. * @param {string} url The request URL. * @param {*} data The JSON request body. * @param {Function|null} action The optional store action creator. * @param {boolean} [dispatchMethod] Whether to dispatch the response data. * @param {AbortSignal|null} [signal] The request cancellation signal. * @param {object} [options] Optional headers, responseType ('response', 'data' or 'blob'), and notify for data/blob messages. * @returns {Promise<*>} JSON, validated envelope data, a blob with filename, or an unread Response. */ delete(url: string, data: any, action: Function | null, dispatchMethod?: boolean, signal?: AbortSignal | null, options?: object): Promise; /** * Sends a GET request. * @param {string} url The request URL. * @param {Function|null} action The optional store action creator. * @param {boolean} [dispatchMethod] Whether to dispatch the response data. * @param {AbortSignal|null} [signal] The request cancellation signal. * @param {object} [options] Optional headers, responseType ('response', 'data' or 'blob'), and notify for data/blob messages. * @returns {Promise<*>} JSON, validated envelope data, a blob with filename, or an unread Response. */ get(url: string, action: Function | null, dispatchMethod?: boolean, signal?: AbortSignal | null, options?: object): Promise; /** * Sends a PATCH request. * @param {string} url The request URL. * @param {*} data The JSON request body. * @param {Function|null} action The optional store action creator. * @param {boolean} [dispatchMethod] Whether to dispatch the response data. * @param {AbortSignal|null} [signal] The request cancellation signal. * @param {object} [options] Optional headers, responseType ('response', 'data' or 'blob'), and notify for data/blob messages. * @returns {Promise<*>} JSON, validated envelope data, a blob with filename, or an unread Response. */ patch(url: string, data: any, action: Function | null, dispatchMethod?: boolean, signal?: AbortSignal | null, options?: object): Promise; /** * Dispatches the parsed value while preserving legacy envelope handling. * @param {Promise<*>} promise The request result. * @param {boolean} dispatchMethod Whether to update the store. * @param {Function|null} action The store action creator. * @param {string} [responseType] The explicitly requested response format. * @returns {Promise<*>} The original request result. */ dispatch(promise: Promise, dispatchMethod: boolean, action: Function | null, responseType?: string): Promise; loadPromise: (url: any, action: any, method?: string, data?: string, permissionCallBack?: () => void) => Promise; loadOnePromise: (url: any, action: any) => Promise; }