UNPKG

@rivetkit/core

Version:

20 lines (17 loc) 859 B
export { a as assertUnreachable, s as stringifyError } from './utils-CT0cv4jd.js'; import { Context, Handler } from 'hono'; import 'hono/utils/http-status'; declare const VERSION: string; declare function httpUserAgent(): string; type UpgradeWebSocket = (createEvents: (c: Context) => any) => Handler; declare function getEnvUniversal(key: string): string | undefined; declare function dbg<T>(x: T): T; /** * Converts various ArrayBuffer-like types to Uint8Array. * Handles ArrayBuffer, ArrayBufferView (including typed arrays), and passes through existing Uint8Array. * * @param data - The ArrayBuffer or ArrayBufferView to convert * @returns A Uint8Array view of the data */ declare function toUint8Array(data: ArrayBuffer | ArrayBufferView): Uint8Array; export { type UpgradeWebSocket, VERSION, dbg, getEnvUniversal, httpUserAgent, toUint8Array };