/** * Request a main event from the main process. * @param event - The event to request. * @param payload - The payload to send to the main process. * @returns The response from the main process. * @throws An error if the request fails. */ export declare const requestMain: (event: string, ...args: Response extends void ? [payload?: Request] : [payload: Request]) => Promise;