import type { RuntimeRemoteTarget } from "./runtime-remote-script-head";
import { runtimeRemoteScriptHead } from "./runtime-remote-script-head";
import { runtimeRemoteScriptTail } from "./runtime-remote-script-tail";

export function runtimeScript(payload: unknown, target: RuntimeRemoteTarget): string {
  return runtimeRemoteScriptHead(payload, target) + runtimeRemoteScriptTail();
}
