2025-08-07 21:08:21 +07:00
|
|
|
import type {
|
|
|
|
|
PluginApiExtensionsOptions,
|
|
|
|
|
PluginOptions,
|
2026-07-28 12:07:28 +07:00
|
|
|
UnscopedInitPluginApi,
|
|
|
|
|
UnscopedPluginApi,
|
|
|
|
|
UnscopedPreInitPluginApi,
|
2025-08-07 21:08:21 +07:00
|
|
|
} from '@revenge-mod/plugins/types'
|
|
|
|
|
|
|
|
|
|
declare global {
|
2026-07-28 12:07:28 +07:00
|
|
|
/**
|
|
|
|
|
* Defines an entrypoint for a Revenge JS plugin.
|
|
|
|
|
*/
|
2025-08-07 21:08:21 +07:00
|
|
|
export function plugin<O extends PluginApiExtensionsOptions>(
|
|
|
|
|
options: PluginOptions<O>,
|
2026-07-28 12:07:28 +07:00
|
|
|
): PluginOptions<O>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The unscoped plugin API. **Use directly only when necessary.**
|
|
|
|
|
*
|
|
|
|
|
* You should be using the `unscoped` property of the `PluginApi` object instead.
|
|
|
|
|
*/
|
|
|
|
|
export const revenge:
|
|
|
|
|
| UnscopedPreInitPluginApi
|
|
|
|
|
| UnscopedInitPluginApi
|
|
|
|
|
| UnscopedPluginApi
|
2025-08-07 21:08:21 +07:00
|
|
|
}
|
|
|
|
|
|
2025-08-09 01:22:42 +07:00
|
|
|
export * from './globals'
|