mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
993 lines
23 KiB
TypeScript
Generated
993 lines
23 KiB
TypeScript
Generated
import type { ByteBuffer } from "peechy";
|
|
|
|
type byte = number;
|
|
type float = number;
|
|
type int = number;
|
|
type alphanumeric = string;
|
|
type uint = number;
|
|
type int8 = number;
|
|
type lowp = number;
|
|
type int16 = number;
|
|
type int32 = number;
|
|
type float32 = number;
|
|
type uint16 = number;
|
|
type uint32 = number;
|
|
export enum Loader {
|
|
jsx = 1,
|
|
js = 2,
|
|
ts = 3,
|
|
tsx = 4,
|
|
css = 5,
|
|
file = 6,
|
|
json = 7,
|
|
toml = 8,
|
|
wasm = 9,
|
|
}
|
|
export const LoaderKeys = {
|
|
1: "jsx",
|
|
jsx: "jsx",
|
|
2: "js",
|
|
js: "js",
|
|
3: "ts",
|
|
ts: "ts",
|
|
4: "tsx",
|
|
tsx: "tsx",
|
|
5: "css",
|
|
css: "css",
|
|
6: "file",
|
|
file: "file",
|
|
7: "json",
|
|
json: "json",
|
|
8: "toml",
|
|
toml: "toml",
|
|
9: "wasm",
|
|
wasm: "wasm",
|
|
};
|
|
export enum FrameworkEntryPointType {
|
|
client = 1,
|
|
server = 2,
|
|
fallback = 3,
|
|
}
|
|
export const FrameworkEntryPointTypeKeys = {
|
|
1: "client",
|
|
client: "client",
|
|
2: "server",
|
|
server: "server",
|
|
3: "fallback",
|
|
fallback: "fallback",
|
|
};
|
|
export enum StackFrameScope {
|
|
Eval = 1,
|
|
Module = 2,
|
|
Function = 3,
|
|
Global = 4,
|
|
Wasm = 5,
|
|
Constructor = 6,
|
|
}
|
|
export const StackFrameScopeKeys = {
|
|
1: "Eval",
|
|
Eval: "Eval",
|
|
2: "Module",
|
|
Module: "Module",
|
|
3: "Function",
|
|
Function: "Function",
|
|
4: "Global",
|
|
Global: "Global",
|
|
5: "Wasm",
|
|
Wasm: "Wasm",
|
|
6: "Constructor",
|
|
Constructor: "Constructor",
|
|
};
|
|
export enum FallbackStep {
|
|
ssr_disabled = 1,
|
|
create_vm = 2,
|
|
configure_router = 3,
|
|
configure_defines = 4,
|
|
resolve_entry_point = 5,
|
|
load_entry_point = 6,
|
|
eval_entry_point = 7,
|
|
fetch_event_handler = 8,
|
|
}
|
|
export const FallbackStepKeys = {
|
|
1: "ssr_disabled",
|
|
ssr_disabled: "ssr_disabled",
|
|
2: "create_vm",
|
|
create_vm: "create_vm",
|
|
3: "configure_router",
|
|
configure_router: "configure_router",
|
|
4: "configure_defines",
|
|
configure_defines: "configure_defines",
|
|
5: "resolve_entry_point",
|
|
resolve_entry_point: "resolve_entry_point",
|
|
6: "load_entry_point",
|
|
load_entry_point: "load_entry_point",
|
|
7: "eval_entry_point",
|
|
eval_entry_point: "eval_entry_point",
|
|
8: "fetch_event_handler",
|
|
fetch_event_handler: "fetch_event_handler",
|
|
};
|
|
export enum ResolveMode {
|
|
disable = 1,
|
|
lazy = 2,
|
|
dev = 3,
|
|
bundle = 4,
|
|
}
|
|
export const ResolveModeKeys = {
|
|
1: "disable",
|
|
disable: "disable",
|
|
2: "lazy",
|
|
lazy: "lazy",
|
|
3: "dev",
|
|
dev: "dev",
|
|
4: "bundle",
|
|
bundle: "bundle",
|
|
};
|
|
export enum Platform {
|
|
browser = 1,
|
|
node = 2,
|
|
bun = 3,
|
|
bun_macro = 4,
|
|
}
|
|
export const PlatformKeys = {
|
|
1: "browser",
|
|
browser: "browser",
|
|
2: "node",
|
|
node: "node",
|
|
3: "bun",
|
|
bun: "bun",
|
|
4: "bun_macro",
|
|
bun_macro: "bun_macro",
|
|
};
|
|
export enum CSSInJSBehavior {
|
|
facade = 1,
|
|
facade_onimportcss = 2,
|
|
auto_onimportcss = 3,
|
|
}
|
|
export const CSSInJSBehaviorKeys = {
|
|
1: "facade",
|
|
facade: "facade",
|
|
2: "facade_onimportcss",
|
|
facade_onimportcss: "facade_onimportcss",
|
|
3: "auto_onimportcss",
|
|
auto_onimportcss: "auto_onimportcss",
|
|
};
|
|
export enum JSXRuntime {
|
|
automatic = 1,
|
|
classic = 2,
|
|
}
|
|
export const JSXRuntimeKeys = {
|
|
1: "automatic",
|
|
automatic: "automatic",
|
|
2: "classic",
|
|
classic: "classic",
|
|
};
|
|
export enum ScanDependencyMode {
|
|
app = 1,
|
|
all = 2,
|
|
}
|
|
export const ScanDependencyModeKeys = {
|
|
1: "app",
|
|
app: "app",
|
|
2: "all",
|
|
all: "all",
|
|
};
|
|
export enum ModuleImportType {
|
|
import = 1,
|
|
require = 2,
|
|
}
|
|
export const ModuleImportTypeKeys = {
|
|
1: "import",
|
|
import: "import",
|
|
2: "require",
|
|
require: "require",
|
|
};
|
|
export enum DotEnvBehavior {
|
|
disable = 1,
|
|
prefix = 2,
|
|
load_all = 3,
|
|
}
|
|
export const DotEnvBehaviorKeys = {
|
|
1: "disable",
|
|
disable: "disable",
|
|
2: "prefix",
|
|
prefix: "prefix",
|
|
3: "load_all",
|
|
load_all: "load_all",
|
|
};
|
|
export enum SourceMapMode {
|
|
inline_into_file = 1,
|
|
external = 2,
|
|
}
|
|
export const SourceMapModeKeys = {
|
|
1: "inline_into_file",
|
|
inline_into_file: "inline_into_file",
|
|
2: "external",
|
|
external: "external",
|
|
};
|
|
export enum ImportKind {
|
|
entry_point = 1,
|
|
stmt = 2,
|
|
require = 3,
|
|
dynamic = 4,
|
|
require_resolve = 5,
|
|
at = 6,
|
|
url = 7,
|
|
internal = 8,
|
|
}
|
|
export const ImportKindKeys = {
|
|
1: "entry_point",
|
|
entry_point: "entry_point",
|
|
2: "stmt",
|
|
stmt: "stmt",
|
|
3: "require",
|
|
require: "require",
|
|
4: "dynamic",
|
|
dynamic: "dynamic",
|
|
5: "require_resolve",
|
|
require_resolve: "require_resolve",
|
|
6: "at",
|
|
at: "at",
|
|
7: "url",
|
|
url: "url",
|
|
8: "internal",
|
|
internal: "internal",
|
|
};
|
|
export enum TransformResponseStatus {
|
|
success = 1,
|
|
fail = 2,
|
|
}
|
|
export const TransformResponseStatusKeys = {
|
|
1: "success",
|
|
success: "success",
|
|
2: "fail",
|
|
fail: "fail",
|
|
};
|
|
export enum MessageLevel {
|
|
err = 1,
|
|
warn = 2,
|
|
note = 3,
|
|
info = 4,
|
|
debug = 5,
|
|
}
|
|
export const MessageLevelKeys = {
|
|
1: "err",
|
|
err: "err",
|
|
2: "warn",
|
|
warn: "warn",
|
|
3: "note",
|
|
note: "note",
|
|
4: "info",
|
|
info: "info",
|
|
5: "debug",
|
|
debug: "debug",
|
|
};
|
|
export enum Reloader {
|
|
disable = 1,
|
|
live = 2,
|
|
fast_refresh = 3,
|
|
}
|
|
export const ReloaderKeys = {
|
|
1: "disable",
|
|
disable: "disable",
|
|
2: "live",
|
|
live: "live",
|
|
3: "fast_refresh",
|
|
fast_refresh: "fast_refresh",
|
|
};
|
|
export enum WebsocketMessageKind {
|
|
welcome = 1,
|
|
file_change_notification = 2,
|
|
build_success = 3,
|
|
build_fail = 4,
|
|
manifest_success = 5,
|
|
manifest_fail = 6,
|
|
resolve_file = 7,
|
|
file_change_notification_with_hint = 8,
|
|
}
|
|
export const WebsocketMessageKindKeys = {
|
|
1: "welcome",
|
|
welcome: "welcome",
|
|
2: "file_change_notification",
|
|
file_change_notification: "file_change_notification",
|
|
3: "build_success",
|
|
build_success: "build_success",
|
|
4: "build_fail",
|
|
build_fail: "build_fail",
|
|
5: "manifest_success",
|
|
manifest_success: "manifest_success",
|
|
6: "manifest_fail",
|
|
manifest_fail: "manifest_fail",
|
|
7: "resolve_file",
|
|
resolve_file: "resolve_file",
|
|
8: "file_change_notification_with_hint",
|
|
file_change_notification_with_hint: "file_change_notification_with_hint",
|
|
};
|
|
export enum WebsocketCommandKind {
|
|
build = 1,
|
|
manifest = 2,
|
|
build_with_file_path = 3,
|
|
}
|
|
export const WebsocketCommandKindKeys = {
|
|
1: "build",
|
|
build: "build",
|
|
2: "manifest",
|
|
manifest: "manifest",
|
|
3: "build_with_file_path",
|
|
build_with_file_path: "build_with_file_path",
|
|
};
|
|
export interface StackFrame {
|
|
function_name: string;
|
|
file: string;
|
|
position: StackFramePosition;
|
|
scope: StackFrameScope;
|
|
}
|
|
|
|
export interface StackFramePosition {
|
|
source_offset: int32;
|
|
line: int32;
|
|
line_start: int32;
|
|
line_stop: int32;
|
|
column_start: int32;
|
|
column_stop: int32;
|
|
expression_start: int32;
|
|
expression_stop: int32;
|
|
}
|
|
|
|
export interface SourceLine {
|
|
line: int32;
|
|
text: string;
|
|
}
|
|
|
|
export interface StackTrace {
|
|
source_lines: SourceLine[];
|
|
frames: StackFrame[];
|
|
}
|
|
|
|
export interface JSException {
|
|
name?: string;
|
|
message?: string;
|
|
runtime_type?: uint16;
|
|
code?: uint8;
|
|
stack?: StackTrace;
|
|
}
|
|
|
|
export interface Problems {
|
|
code: uint16;
|
|
name: string;
|
|
exceptions: JSException[];
|
|
build: Log;
|
|
}
|
|
|
|
export interface Router {
|
|
routes: StringMap;
|
|
route: int32;
|
|
params: StringMap;
|
|
}
|
|
|
|
export interface FallbackMessageContainer {
|
|
message?: string;
|
|
router?: Router;
|
|
reason?: FallbackStep;
|
|
problems?: Problems;
|
|
cwd?: string;
|
|
}
|
|
|
|
export interface JSX {
|
|
factory: string;
|
|
runtime: JSXRuntime;
|
|
fragment: string;
|
|
development: boolean;
|
|
import_source: string;
|
|
react_fast_refresh: boolean;
|
|
}
|
|
|
|
export interface StringPointer {
|
|
offset: uint32;
|
|
length: uint32;
|
|
}
|
|
|
|
export interface JavascriptBundledModule {
|
|
path: StringPointer;
|
|
code: StringPointer;
|
|
package_id: uint32;
|
|
id: uint32;
|
|
path_extname_length: byte;
|
|
}
|
|
|
|
export interface JavascriptBundledPackage {
|
|
name: StringPointer;
|
|
version: StringPointer;
|
|
hash: uint32;
|
|
modules_offset: uint32;
|
|
modules_length: uint32;
|
|
}
|
|
|
|
export interface JavascriptBundle {
|
|
modules: JavascriptBundledModule[];
|
|
packages: JavascriptBundledPackage[];
|
|
etag: Uint8Array;
|
|
generated_at: uint32;
|
|
app_package_json_dependencies_hash: Uint8Array;
|
|
import_from_name: Uint8Array;
|
|
manifest_string: Uint8Array;
|
|
}
|
|
|
|
export interface JavascriptBundleContainer {
|
|
bundle_format_version?: uint32;
|
|
routes?: LoadedRouteConfig;
|
|
framework?: LoadedFramework;
|
|
bundle?: JavascriptBundle;
|
|
code_length?: uint32;
|
|
}
|
|
|
|
export interface ModuleImportRecord {
|
|
kind: ModuleImportType;
|
|
path: string;
|
|
dynamic: boolean;
|
|
}
|
|
|
|
export interface Module {
|
|
path: string;
|
|
imports: ModuleImportRecord[];
|
|
}
|
|
|
|
export interface StringMap {
|
|
keys: string[];
|
|
values: string[];
|
|
}
|
|
|
|
export interface LoaderMap {
|
|
extensions: string[];
|
|
loaders: Loader[];
|
|
}
|
|
|
|
export interface EnvConfig {
|
|
prefix?: string;
|
|
defaults?: StringMap;
|
|
}
|
|
|
|
export interface LoadedEnvConfig {
|
|
dotenv: DotEnvBehavior;
|
|
defaults: StringMap;
|
|
prefix: string;
|
|
}
|
|
|
|
export interface FrameworkConfig {
|
|
package?: string;
|
|
client?: FrameworkEntryPointMessage;
|
|
server?: FrameworkEntryPointMessage;
|
|
fallback?: FrameworkEntryPointMessage;
|
|
development?: boolean;
|
|
client_css_in_js?: CSSInJSBehavior;
|
|
display_name?: string;
|
|
overrideModules?: StringMap;
|
|
}
|
|
|
|
export interface FrameworkEntryPoint {
|
|
kind: FrameworkEntryPointType;
|
|
path: string;
|
|
env: LoadedEnvConfig;
|
|
}
|
|
|
|
export interface FrameworkEntryPointMap {
|
|
client?: FrameworkEntryPoint;
|
|
server?: FrameworkEntryPoint;
|
|
fallback?: FrameworkEntryPoint;
|
|
}
|
|
|
|
export interface FrameworkEntryPointMessage {
|
|
path?: string;
|
|
env?: EnvConfig;
|
|
}
|
|
|
|
export interface LoadedFramework {
|
|
package: string;
|
|
display_name: string;
|
|
development: boolean;
|
|
entry_points: FrameworkEntryPointMap;
|
|
client_css_in_js: CSSInJSBehavior;
|
|
overrideModules: StringMap;
|
|
}
|
|
|
|
export interface LoadedRouteConfig {
|
|
dir: string;
|
|
extensions: string[];
|
|
static_dir: string;
|
|
asset_prefix: string;
|
|
}
|
|
|
|
export interface RouteConfig {
|
|
dir?: string[];
|
|
extensions?: string[];
|
|
static_dir?: string;
|
|
asset_prefix?: string;
|
|
}
|
|
|
|
export interface TransformOptions {
|
|
jsx?: JSX;
|
|
tsconfig_override?: string;
|
|
resolve?: ResolveMode;
|
|
origin?: string;
|
|
absolute_working_dir?: string;
|
|
define?: StringMap;
|
|
preserve_symlinks?: boolean;
|
|
entry_points?: string[];
|
|
write?: boolean;
|
|
inject?: string[];
|
|
output_dir?: string;
|
|
external?: string[];
|
|
loaders?: LoaderMap;
|
|
main_fields?: string[];
|
|
platform?: Platform;
|
|
serve?: boolean;
|
|
extension_order?: string[];
|
|
generate_node_module_bundle?: boolean;
|
|
node_modules_bundle_path?: string;
|
|
node_modules_bundle_path_server?: string;
|
|
framework?: FrameworkConfig;
|
|
router?: RouteConfig;
|
|
no_summary?: boolean;
|
|
disable_hmr?: boolean;
|
|
port?: uint16;
|
|
logLevel?: MessageLevel;
|
|
source_map?: SourceMapMode;
|
|
}
|
|
|
|
export interface FileHandle {
|
|
path: string;
|
|
size: uint;
|
|
fd: uint;
|
|
}
|
|
|
|
export interface Transform {
|
|
handle?: FileHandle;
|
|
path?: string;
|
|
contents?: Uint8Array;
|
|
loader?: Loader;
|
|
options?: TransformOptions;
|
|
}
|
|
|
|
export interface Scan {
|
|
path?: string;
|
|
contents?: Uint8Array;
|
|
loader?: Loader;
|
|
}
|
|
|
|
export interface ScanResult {
|
|
exports: string[];
|
|
imports: ScannedImport[];
|
|
}
|
|
|
|
export interface ScannedImport {
|
|
path: string;
|
|
kind: ImportKind;
|
|
}
|
|
|
|
export interface OutputFile {
|
|
data: Uint8Array;
|
|
path: string;
|
|
}
|
|
|
|
export interface TransformResponse {
|
|
status: TransformResponseStatus;
|
|
files: OutputFile[];
|
|
errors: Message[];
|
|
}
|
|
|
|
export interface Location {
|
|
file: string;
|
|
namespace: string;
|
|
line: int32;
|
|
column: int32;
|
|
line_text: string;
|
|
suggestion: string;
|
|
offset: uint;
|
|
}
|
|
|
|
export interface MessageData {
|
|
text?: string;
|
|
location?: Location;
|
|
}
|
|
|
|
export interface MessageMeta {
|
|
resolve?: string;
|
|
build?: boolean;
|
|
}
|
|
|
|
export interface Message {
|
|
level: MessageLevel;
|
|
data: MessageData;
|
|
notes: MessageData[];
|
|
on: MessageMeta;
|
|
}
|
|
|
|
export interface Log {
|
|
warnings: uint32;
|
|
errors: uint32;
|
|
msgs: Message[];
|
|
}
|
|
|
|
export interface WebsocketMessage {
|
|
timestamp: uint32;
|
|
kind: WebsocketMessageKind;
|
|
}
|
|
|
|
export interface WebsocketMessageWelcome {
|
|
epoch: uint32;
|
|
javascriptReloader: Reloader;
|
|
cwd: string;
|
|
assetPrefix: string;
|
|
}
|
|
|
|
export interface WebsocketMessageFileChangeNotification {
|
|
id: uint32;
|
|
loader: Loader;
|
|
}
|
|
|
|
export interface WebsocketCommand {
|
|
kind: WebsocketCommandKind;
|
|
timestamp: uint32;
|
|
}
|
|
|
|
export interface WebsocketCommandBuild {
|
|
id: uint32;
|
|
}
|
|
|
|
export interface WebsocketCommandManifest {
|
|
id: uint32;
|
|
}
|
|
|
|
export interface WebsocketMessageBuildSuccess {
|
|
id: uint32;
|
|
from_timestamp: uint32;
|
|
loader: Loader;
|
|
module_path: string;
|
|
blob_length: uint32;
|
|
}
|
|
|
|
export interface WebsocketMessageBuildFailure {
|
|
id: uint32;
|
|
from_timestamp: uint32;
|
|
loader: Loader;
|
|
module_path: string;
|
|
log: Log;
|
|
}
|
|
|
|
export interface WebsocketCommandBuildWithFilePath {
|
|
id: uint32;
|
|
file_path: string;
|
|
}
|
|
|
|
export interface WebsocketMessageResolveID {
|
|
id: uint32;
|
|
}
|
|
|
|
export interface NPMRegistry {
|
|
url: string;
|
|
username: string;
|
|
password: string;
|
|
token: string;
|
|
}
|
|
|
|
export interface NPMRegistryMap {
|
|
scopes: string[];
|
|
registries: NPMRegistry[];
|
|
}
|
|
|
|
export interface BunInstall {
|
|
default_registry?: NPMRegistry;
|
|
scoped?: NPMRegistryMap;
|
|
lockfile_path?: string;
|
|
save_lockfile_path?: string;
|
|
cache_directory?: string;
|
|
dry_run?: boolean;
|
|
force?: boolean;
|
|
save_dev?: boolean;
|
|
save_optional?: boolean;
|
|
save_peer?: boolean;
|
|
save_lockfile?: boolean;
|
|
production?: boolean;
|
|
save_yarn_lockfile?: boolean;
|
|
native_bin_links?: string[];
|
|
disable_cache?: boolean;
|
|
disable_manifest_cache?: boolean;
|
|
global_dir?: string;
|
|
global_bin_dir?: string;
|
|
}
|
|
|
|
export declare function encodeStackFrame(
|
|
message: StackFrame,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeStackFrame(buffer: ByteBuffer): StackFrame;
|
|
export declare function encodeStackFramePosition(
|
|
message: StackFramePosition,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeStackFramePosition(
|
|
buffer: ByteBuffer
|
|
): StackFramePosition;
|
|
export declare function encodeSourceLine(
|
|
message: SourceLine,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeSourceLine(buffer: ByteBuffer): SourceLine;
|
|
export declare function encodeStackTrace(
|
|
message: StackTrace,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeStackTrace(buffer: ByteBuffer): StackTrace;
|
|
export declare function encodeJSException(
|
|
message: JSException,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeJSException(buffer: ByteBuffer): JSException;
|
|
export declare function encodeProblems(message: Problems, bb: ByteBuffer): void;
|
|
export declare function decodeProblems(buffer: ByteBuffer): Problems;
|
|
export declare function encodeRouter(message: Router, bb: ByteBuffer): void;
|
|
export declare function decodeRouter(buffer: ByteBuffer): Router;
|
|
export declare function encodeFallbackMessageContainer(
|
|
message: FallbackMessageContainer,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeFallbackMessageContainer(
|
|
buffer: ByteBuffer
|
|
): FallbackMessageContainer;
|
|
export declare function encodeJSX(message: JSX, bb: ByteBuffer): void;
|
|
export declare function decodeJSX(buffer: ByteBuffer): JSX;
|
|
export declare function encodeStringPointer(
|
|
message: StringPointer,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeStringPointer(buffer: ByteBuffer): StringPointer;
|
|
export declare function encodeJavascriptBundledModule(
|
|
message: JavascriptBundledModule,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeJavascriptBundledModule(
|
|
buffer: ByteBuffer
|
|
): JavascriptBundledModule;
|
|
export declare function encodeJavascriptBundledPackage(
|
|
message: JavascriptBundledPackage,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeJavascriptBundledPackage(
|
|
buffer: ByteBuffer
|
|
): JavascriptBundledPackage;
|
|
export declare function encodeJavascriptBundle(
|
|
message: JavascriptBundle,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeJavascriptBundle(
|
|
buffer: ByteBuffer
|
|
): JavascriptBundle;
|
|
export declare function encodeJavascriptBundleContainer(
|
|
message: JavascriptBundleContainer,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeJavascriptBundleContainer(
|
|
buffer: ByteBuffer
|
|
): JavascriptBundleContainer;
|
|
export declare function encodeModuleImportRecord(
|
|
message: ModuleImportRecord,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeModuleImportRecord(
|
|
buffer: ByteBuffer
|
|
): ModuleImportRecord;
|
|
export declare function encodeModule(message: Module, bb: ByteBuffer): void;
|
|
export declare function decodeModule(buffer: ByteBuffer): Module;
|
|
export declare function encodeStringMap(
|
|
message: StringMap,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeStringMap(buffer: ByteBuffer): StringMap;
|
|
export declare function encodeLoaderMap(
|
|
message: LoaderMap,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeLoaderMap(buffer: ByteBuffer): LoaderMap;
|
|
export declare function encodeEnvConfig(
|
|
message: EnvConfig,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeEnvConfig(buffer: ByteBuffer): EnvConfig;
|
|
export declare function encodeLoadedEnvConfig(
|
|
message: LoadedEnvConfig,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeLoadedEnvConfig(
|
|
buffer: ByteBuffer
|
|
): LoadedEnvConfig;
|
|
export declare function encodeFrameworkConfig(
|
|
message: FrameworkConfig,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeFrameworkConfig(
|
|
buffer: ByteBuffer
|
|
): FrameworkConfig;
|
|
export declare function encodeFrameworkEntryPoint(
|
|
message: FrameworkEntryPoint,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeFrameworkEntryPoint(
|
|
buffer: ByteBuffer
|
|
): FrameworkEntryPoint;
|
|
export declare function encodeFrameworkEntryPointMap(
|
|
message: FrameworkEntryPointMap,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeFrameworkEntryPointMap(
|
|
buffer: ByteBuffer
|
|
): FrameworkEntryPointMap;
|
|
export declare function encodeFrameworkEntryPointMessage(
|
|
message: FrameworkEntryPointMessage,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeFrameworkEntryPointMessage(
|
|
buffer: ByteBuffer
|
|
): FrameworkEntryPointMessage;
|
|
export declare function encodeLoadedFramework(
|
|
message: LoadedFramework,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeLoadedFramework(
|
|
buffer: ByteBuffer
|
|
): LoadedFramework;
|
|
export declare function encodeLoadedRouteConfig(
|
|
message: LoadedRouteConfig,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeLoadedRouteConfig(
|
|
buffer: ByteBuffer
|
|
): LoadedRouteConfig;
|
|
export declare function encodeRouteConfig(
|
|
message: RouteConfig,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeRouteConfig(buffer: ByteBuffer): RouteConfig;
|
|
export declare function encodeTransformOptions(
|
|
message: TransformOptions,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeTransformOptions(
|
|
buffer: ByteBuffer
|
|
): TransformOptions;
|
|
export declare function encodeFileHandle(
|
|
message: FileHandle,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeFileHandle(buffer: ByteBuffer): FileHandle;
|
|
export declare function encodeTransform(
|
|
message: Transform,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeTransform(buffer: ByteBuffer): Transform;
|
|
export declare function encodeScan(message: Scan, bb: ByteBuffer): void;
|
|
export declare function decodeScan(buffer: ByteBuffer): Scan;
|
|
export declare function encodeScanResult(
|
|
message: ScanResult,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeScanResult(buffer: ByteBuffer): ScanResult;
|
|
export declare function encodeScannedImport(
|
|
message: ScannedImport,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeScannedImport(buffer: ByteBuffer): ScannedImport;
|
|
export declare function encodeOutputFile(
|
|
message: OutputFile,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeOutputFile(buffer: ByteBuffer): OutputFile;
|
|
export declare function encodeTransformResponse(
|
|
message: TransformResponse,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeTransformResponse(
|
|
buffer: ByteBuffer
|
|
): TransformResponse;
|
|
export declare function encodeLocation(message: Location, bb: ByteBuffer): void;
|
|
export declare function decodeLocation(buffer: ByteBuffer): Location;
|
|
export declare function encodeMessageData(
|
|
message: MessageData,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeMessageData(buffer: ByteBuffer): MessageData;
|
|
export declare function encodeMessageMeta(
|
|
message: MessageMeta,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeMessageMeta(buffer: ByteBuffer): MessageMeta;
|
|
export declare function encodeMessage(message: Message, bb: ByteBuffer): void;
|
|
export declare function decodeMessage(buffer: ByteBuffer): Message;
|
|
export declare function encodeLog(message: Log, bb: ByteBuffer): void;
|
|
export declare function decodeLog(buffer: ByteBuffer): Log;
|
|
export declare function encodeWebsocketMessage(
|
|
message: WebsocketMessage,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeWebsocketMessage(
|
|
buffer: ByteBuffer
|
|
): WebsocketMessage;
|
|
export declare function encodeWebsocketMessageWelcome(
|
|
message: WebsocketMessageWelcome,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeWebsocketMessageWelcome(
|
|
buffer: ByteBuffer
|
|
): WebsocketMessageWelcome;
|
|
export declare function encodeWebsocketMessageFileChangeNotification(
|
|
message: WebsocketMessageFileChangeNotification,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeWebsocketMessageFileChangeNotification(
|
|
buffer: ByteBuffer
|
|
): WebsocketMessageFileChangeNotification;
|
|
export declare function encodeWebsocketCommand(
|
|
message: WebsocketCommand,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeWebsocketCommand(
|
|
buffer: ByteBuffer
|
|
): WebsocketCommand;
|
|
export declare function encodeWebsocketCommandBuild(
|
|
message: WebsocketCommandBuild,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeWebsocketCommandBuild(
|
|
buffer: ByteBuffer
|
|
): WebsocketCommandBuild;
|
|
export declare function encodeWebsocketCommandManifest(
|
|
message: WebsocketCommandManifest,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeWebsocketCommandManifest(
|
|
buffer: ByteBuffer
|
|
): WebsocketCommandManifest;
|
|
export declare function encodeWebsocketMessageBuildSuccess(
|
|
message: WebsocketMessageBuildSuccess,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeWebsocketMessageBuildSuccess(
|
|
buffer: ByteBuffer
|
|
): WebsocketMessageBuildSuccess;
|
|
export declare function encodeWebsocketMessageBuildFailure(
|
|
message: WebsocketMessageBuildFailure,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeWebsocketMessageBuildFailure(
|
|
buffer: ByteBuffer
|
|
): WebsocketMessageBuildFailure;
|
|
export declare function encodeWebsocketCommandBuildWithFilePath(
|
|
message: WebsocketCommandBuildWithFilePath,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeWebsocketCommandBuildWithFilePath(
|
|
buffer: ByteBuffer
|
|
): WebsocketCommandBuildWithFilePath;
|
|
export declare function encodeWebsocketMessageResolveID(
|
|
message: WebsocketMessageResolveID,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeWebsocketMessageResolveID(
|
|
buffer: ByteBuffer
|
|
): WebsocketMessageResolveID;
|
|
export declare function encodeNPMRegistry(
|
|
message: NPMRegistry,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeNPMRegistry(buffer: ByteBuffer): NPMRegistry;
|
|
export declare function encodeNPMRegistryMap(
|
|
message: NPMRegistryMap,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeNPMRegistryMap(
|
|
buffer: ByteBuffer
|
|
): NPMRegistryMap;
|
|
export declare function encodeBunInstall(
|
|
message: BunInstall,
|
|
bb: ByteBuffer
|
|
): void;
|
|
export declare function decodeBunInstall(buffer: ByteBuffer): BunInstall;
|