// SPDX-License-Identifier: Apache-2.0 export { Browser, type PageOptions, type GotoOptions } from "../api/browser.ts"; export type { AnyPage } from "../api/types.ts"; export * from "../rust/bridge.ts"; export * from "../profiles/auto-escalation.ts"; export const bunNative = Object.freeze({ file: Bun.file, write: Bun.write, spawn: Bun.spawn, spawnSync: Bun.spawnSync, sleep: Bun.sleep, nanoseconds: Bun.nanoseconds, hash: Bun.hash, escapeHTML: Bun.escapeHTML, glob(pattern: string) { return new Bun.Glob(pattern); }, }); export const nativeCapabilities = Object.freeze({ bun: true, runtime: ["file", "write", "spawn", "sleep", "glob", "hash", "escapeHTML"], rust: ["dom", "markdown", "cookies", "dns", "gemini-web", "x", "x-algorithm"], profiles: ["static", "http", "render", "fast", "stealth", "max"], });