import { NuiContext } from "../context/NuiContext"; declare type UseNuiRequestOptions = { resource?: string; }; /** * @typedef {Object} useNuiRequestResponse * @property {number} send - Method to send an event to the server * @property {number} sendAbortable - Same as send but able to abort mission :) * * @function sendFn * @param {string} event * @param {any} data * * @function sendAbortableFn * @param {string} event * @param {any} data */ /** * Send requests to the client * @param {Object} [options] * @param {string} [options.resource] override the provider resource name with the resource name to send the event to * @returns {useNuiRequestResponse} object with send event method * @example * const { send } = useNuiRequest(); * const { send: sendToAnotherResource } = useNuiRequest("another-resource"); * * return * * * * */ export declare const useNuiRequest: ({ resource }?: UseNuiRequestOptions) => Pick; export {};