OptionalauthorizeOptionaleventPrefix emitted renderer event channels with the module prefix or a custom prefix.
OptionalonCalled when a fire-and-forget listen / listenOnce channel rejects.
Unlike handle channels, listener failures are not returned to the
renderer — without this hook they are logged to avoid unhandled rejections.
OptionalreadyHook run after every channel is registered. May return a cleanup callback that runs when the module is unloaded. If it throws, all channels registered so far are rolled back before the error propagates.
OptionalvalidatePer-channel runtime payload validators, keyed by channel key. A callback validator throws to reject; a Standard Schema validator rejects with IpcValidationError and its parsed output replaces the arguments.
Keys are checked against the declared channels, so a misspelled entry is a compile error instead of a guard that silently never runs.
Return
falseto reject calls from an untrusted renderer or frame.