import { a as ViolationNode, i as Violation, r as ScanReport, t as Impact } from "../protocol-C17yBy4y.mjs"; import { DevframeDefinition } from "devframe"; //#region src/node/index.d.ts /** * Absolute path to the built **client script** module (`dist/client-script/index.mjs`), * the dock client script the client runtime imports into the host page to scan * it (its default export boots the script; importing it does too). * * The definition already declares this as its dock `clientScript`, so a hub * serves it with no host wiring. Exported for hosts that mount the module * themselves (e.g. via `/@fs/` under Vite). Requires the built bundle * (`pnpm -C plugins/a11y build`). * * Resolved through the package's own `./client-script` export, since a * bundler may hoist this module into a shared chunk whose on-disk depth * differs from the entry's, breaking an `import.meta.url`-relative path. * The relative fallback covers an unbuilt bundle (resolution then fails), * where downstream `existsSync` checks degrade gracefully. */ export declare const a11yClientScriptBundlePath: string; export interface A11yDevframeOptions { /** Override the devframe id (and the default CLI command / mount path). */ id?: string; /** Override the display name shown in a host dock. */ name?: string; /** Override the dock icon. */ icon?: string; /** * Override the mount path. Defaults to `/__devframes_plugin_a11y/` so the * panel iframe shares an origin with the host page it scans. */ basePath?: string; /** Preferred standalone CLI port. */ port?: number; /** * Rescan on debounced user interaction (mouse/keyboard/touch), on top of the * DOM MutationObserver. Default `true`. */ autoScan?: boolean; /** Log newly-appeared violations to the browser console. Default `true`. */ logIssues?: boolean; /** * Auto-pin all of a route's violations the first time it's scanned. * Default `false`. */ defaultHighlight?: boolean; /** axe-core configuration. */ axe?: { /** Rule tags to run (defaults to the broadened WCAG 2.0–2.2 + best-practice set). */ tags?: string[]; /** Extra axe `run` options merged over the defaults. */ runOptions?: Record; }; } /** * Build a {@link DevframeDefinition} for the a11y inspector. The same * definition runs standalone (`/cli`, `/build`) and mounts into a host * (`/vite`, hub). The panel talks to the page script over the in-page channel * (`devframe/in-page-channel`), so the scan/highlight loop works identically in dev * (live WebSocket RPC) and in a baked static build. * * @experimental This plugin is experimental and may change without a major * version bump until it stabilizes. */ export declare function createA11yDevframe(options?: A11yDevframeOptions): DevframeDefinition; //#endregion export { type Impact, type ScanReport, type Violation, type ViolationNode, createA11yDevframe as default };