blindfill 0.0.0 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1068 @@
1
+ import { inspect } from 'node:util';
2
+ import { Frame, ElementHandle, Page, BrowserContext, Browser } from 'playwright-core';
3
+
4
+ /** Shared types. A Target is what an actuator *observed*, never what the caller claims. */
5
+ type WebTarget = {
6
+ kind: 'web';
7
+ origin: string;
8
+ };
9
+ type AndroidTarget = {
10
+ kind: 'android';
11
+ pkg: string;
12
+ signer?: string;
13
+ };
14
+ type Target = WebTarget | AndroidTarget;
15
+ declare function formatTarget(t: Target): string;
16
+ declare function parseTarget(s: string): Target;
17
+ /** Bitwarden URI match types. null/undefined in the vault means "default" => we use Host. */
18
+ type MatchType = 'domain' | 'host' | 'startsWith' | 'exact' | 'regex' | 'never';
19
+ interface ItemUri {
20
+ uri: string;
21
+ match: MatchType;
22
+ }
23
+ interface ItemRef {
24
+ backend: string;
25
+ id: string;
26
+ name?: string;
27
+ }
28
+ type SubmitPolicy = 'once' | 'none';
29
+ /** Parsed blindfill.* control fields. */
30
+ interface ControlFields {
31
+ submit: SubmitPolicy;
32
+ signers: string[];
33
+ rules?: unknown;
34
+ notesReadable: boolean;
35
+ /**
36
+ * blindfill.passkey_be: the backup-eligible flag the passkey was created with (default true, as
37
+ * Bitwarden clients sign; "0" for passkeys registered through Firefox, which cannot set it).
38
+ */
39
+ passkeyBe: boolean;
40
+ /** blindfill.password_policy JSON (data only) */
41
+ passwordPolicy?: unknown;
42
+ }
43
+ /**
44
+ * Item metadata that is safe to hand to an agent: readable values, secret-field NAMES only.
45
+ */
46
+ interface ItemMeta {
47
+ ref: ItemRef;
48
+ name: string;
49
+ username?: string;
50
+ uris: ItemUri[];
51
+ /** Readable custom fields (Text/Boolean) with values. */
52
+ readable: Record<string, string>;
53
+ /** Names of Secret-class fields (never values). Includes "password" when present. */
54
+ secretFields: string[];
55
+ hasTotp: boolean;
56
+ control: ControlFields;
57
+ /** Only populated when the item opts in with blindfill.notes=readable. */
58
+ notes?: string;
59
+ }
60
+ declare class BlindfillError extends Error {
61
+ code: 'LOCKED' | 'NOT_FOUND' | 'ORIGIN_MISMATCH' | 'POLICY' | 'AMBIGUOUS' | 'SESSION_LOCKED' | 'BACKEND' | 'ACTUATOR' | 'UNSUPPORTED' | 'SECRET_ACCESS';
62
+ constructor(code: 'LOCKED' | 'NOT_FOUND' | 'ORIGIN_MISMATCH' | 'POLICY' | 'AMBIGUOUS' | 'SESSION_LOCKED' | 'BACKEND' | 'ACTUATOR' | 'UNSUPPORTED' | 'SECRET_ACCESS', message: string);
63
+ }
64
+
65
+ /**
66
+ * Field classes (ARCHITECTURE 2a) and the classifier. Unknown => Secret.
67
+ */
68
+ type FieldClass = 'secret' | 'ephemeral' | 'readable' | 'notes';
69
+ /** Classify a built-in field key. Anything unrecognised is Secret (fail closed). */
70
+ declare function classifyKey(key: string): FieldClass;
71
+ /**
72
+ * Bitwarden custom field types: 0 Text, 1 Hidden, 2 Boolean, 3 Linked.
73
+ * Text/Boolean => Readable. Hidden, Linked, unknown/missing => Secret.
74
+ */
75
+ declare function classifyBwFieldType(type: unknown): FieldClass;
76
+ declare const CONTROL_PREFIX = "blindfill.";
77
+ declare function isControlField(name: string): boolean;
78
+ declare function isReadable(c: FieldClass): boolean;
79
+
80
+ type SecretSink = (value: Buffer) => void | Promise<void>;
81
+ /**
82
+ * Write-only container for a Secret-class value.
83
+ *
84
+ * - toString / toJSON throw; util.inspect and console.log print a fixed marker.
85
+ * - `into(sink)` can be called once. The buffer handed to the sink is zero-filled
86
+ * after the sink returns (sinks must not retain it).
87
+ * - No getter exists. The value lives in an ES private field.
88
+ */
89
+ declare class SecretHandle {
90
+ #private;
91
+ [inspect.custom]: () => string;
92
+ readonly label: string;
93
+ constructor(value: Buffer | string, label?: string);
94
+ get length(): number;
95
+ get consumed(): boolean;
96
+ into(sink: SecretSink): Promise<void>;
97
+ /** Discard without using. */
98
+ destroy(): void;
99
+ toString(): never;
100
+ toJSON(): never;
101
+ [Symbol.toPrimitive](): never;
102
+ }
103
+
104
+ /**
105
+ * Scrubber: removes known Secret values from any outgoing text in these forms:
106
+ * raw, URL-encoded (%20 and +), Base64 / Base64url (all three alignments), hex, JSON-escaped.
107
+ * Best effort: it cannot defeat transformations it does not know (see SECURITY.md).
108
+ */
109
+ declare const REDACTED = "[REDACTED]";
110
+ declare class Scrubber {
111
+ #private;
112
+ /** Register a Secret value (string or Buffer). The Buffer is not retained; derived strings are. */
113
+ register(value: string | Buffer): void;
114
+ get size(): number;
115
+ scrub(text: string): string;
116
+ /**
117
+ * Output boundary. A redaction marker shows that, and where, a secret matched the text (e.g. a
118
+ * caller-supplied guess echoed in an error), so any hit withholds the whole text instead.
119
+ */
120
+ guard(text: string, withheld: string): string;
121
+ /** Scrub every string in a JSON-able value (keys too). */
122
+ scrubDeep<T>(v: T): T;
123
+ contains(text: string): boolean;
124
+ }
125
+ /** Process-wide scrubber shared by backends, engine, CLI and MCP. */
126
+ declare const globalScrubber: Scrubber;
127
+
128
+ interface AuditEntry {
129
+ event: 'fill' | 'totp' | 'refused' | 'submit' | 'session' | 'probe' | 'selftest' | 'item' | 'passkey';
130
+ backend?: string;
131
+ item?: string;
132
+ target?: string;
133
+ fields?: string[];
134
+ outcome?: string;
135
+ reason?: string;
136
+ }
137
+ declare function stateDir(): string;
138
+ declare function auditPath(): string;
139
+ /** Append-only JSONL. The entry type has no value-carrying field; strings are scrubbed anyway. */
140
+ declare function audit(entry: AuditEntry, path?: string): void;
141
+
142
+ interface MatchResult {
143
+ ok: boolean;
144
+ reason: string;
145
+ uri?: string;
146
+ match?: MatchType;
147
+ }
148
+ /** Loopback hosts (dev/test) are the only places a secret may be typed over plain http. */
149
+ declare function isLoopbackHost(host: string): boolean;
150
+ /**
151
+ * Does the observed web origin satisfy one vault URI under Bitwarden match semantics?
152
+ * `observedUrl` is the full URL the browser reports (needed for startsWith/exact/regex).
153
+ */
154
+ declare function matchUri(observedUrl: string, item: ItemUri): MatchResult;
155
+ /** Web URIs only (androidapp:// entries are handled by android binding). */
156
+ declare function webUris(meta: ItemMeta): ItemUri[];
157
+ declare function androidPackages(meta: ItemMeta): string[];
158
+ /** Origin binding for the page the browser is actually on. */
159
+ declare function checkWebBinding(observedUrl: string, meta: ItemMeta): MatchResult;
160
+ /** Like Bitwarden: the package must match; a blindfill.signers pin, when the item has one, must match too. */
161
+ declare function checkAndroidBinding(pkg: string, signer: string | undefined, meta: ItemMeta): MatchResult;
162
+ declare function checkBinding(target: Target, meta: ItemMeta, observedUrl?: string): MatchResult;
163
+ declare function assertBound(r: MatchResult): void;
164
+ /**
165
+ * Per-session state: post-fill lock and one-shot guards.
166
+ * A Secret fill locks the session: page text/DOM/screenshots are refused until stop.
167
+ */
168
+ declare class SessionPolicy {
169
+ locked: boolean;
170
+ /** Set while a human has the browser (CAPTCHA, consent, push-MFA). Agent-driven actions are refused. */
171
+ paused: {
172
+ reason: string;
173
+ since: string;
174
+ } | null;
175
+ private filled;
176
+ constructor(init?: {
177
+ locked?: boolean;
178
+ filled?: string[];
179
+ paused?: {
180
+ reason: string;
181
+ since: string;
182
+ } | null;
183
+ });
184
+ /** Every agent-driven browser action calls this first. */
185
+ assertActive(what: string): void;
186
+ /** Call before returning page text, DOM, screenshots or console output. */
187
+ assertReadable(what: string): void;
188
+ lock(): void;
189
+ /** One-shot: a secret field is filled at most once per session+origin. */
190
+ assertFirstSecretFill(origin: string, field: string): void;
191
+ recordSecretFill(origin: string, field: string): void;
192
+ snapshot(): {
193
+ locked: boolean;
194
+ filled: string[];
195
+ paused: {
196
+ reason: string;
197
+ since: string;
198
+ } | null;
199
+ };
200
+ }
201
+ /** One submit per fill call. */
202
+ declare class SubmitGuard {
203
+ #private;
204
+ take(): void;
205
+ }
206
+
207
+ type Cap = 'SEARCH' | 'TOTP' | 'ANDROID_APPS' | 'CUSTOM_FIELDS' | 'WRITE';
208
+ type Tier = 'verified' | 'blind-written/unverified' | 'community-verified';
209
+ interface FindQuery {
210
+ /** Resolve items whose vault URIs bind to this target (policy-filtered). */
211
+ target?: Target;
212
+ /** Free-text search (name / username / URI). */
213
+ query?: string;
214
+ }
215
+ /** Item to create. Only login-shaped items; `password` is Secret-class and is never echoed back. */
216
+ interface NewItemSpec {
217
+ name: string;
218
+ username?: string;
219
+ /** exact origins; stored as exact-host URIs */
220
+ uris: string[];
221
+ password?: string;
222
+ totpSeed?: string;
223
+ /** non-secret custom fields (incl. blindfill.* control fields) */
224
+ fields?: Record<string, string>;
225
+ }
226
+ /** Non-secret change of an existing item. `fields[name] = null` deletes a field. Secret-class fields are refused. */
227
+ interface ItemPatch {
228
+ name?: string;
229
+ username?: string;
230
+ uris?: string[];
231
+ fields?: Record<string, string | null>;
232
+ }
233
+ /** A passkey just created by a browser authenticator. The private key (PKCS#8 DER) stays in `key`. */
234
+ interface NewPasskey {
235
+ /** raw credential id, base64url */
236
+ credentialId: string;
237
+ rpId: string;
238
+ /** user.id from the RP, base64url */
239
+ userHandle: string;
240
+ userName?: string;
241
+ counter: number;
242
+ /** false when created through Firefox (BE=0); stored as blindfill.passkey_be=0 */
243
+ backupEligible: boolean;
244
+ key: SecretHandle;
245
+ }
246
+ /** ARCHITECTURE 3.1. Every backend must pass src/backends/_contract. */
247
+ interface Backend {
248
+ readonly id: string;
249
+ readonly tier: Tier;
250
+ readonly capabilities: ReadonlySet<Cap>;
251
+ /** Vendor CLI version string, for selftest / issue reports. Never contains secrets. */
252
+ version(): Promise<string>;
253
+ /** Non-interactive readiness check. Throws BlindfillError('LOCKED') when the vault is locked. */
254
+ unlock(): Promise<void>;
255
+ /** Metadata only. */
256
+ find(q: FindQuery): Promise<ItemRef[]>;
257
+ /** Readable values + Secret field NAMES. Never values of Secret-class fields. */
258
+ meta(ref: ItemRef): Promise<ItemMeta>;
259
+ /** Readable-class fields only. Throws SECRET_ACCESS for Secret-class fields. */
260
+ read(ref: ItemRef, field: string): Promise<string>;
261
+ /** Secret-class value as a write-only handle. */
262
+ openSecret(ref: ItemRef, field: string): Promise<SecretHandle>;
263
+ /** Current TOTP code (Ephemeral). The seed never leaves the backend. */
264
+ totpCode(ref: ItemRef): Promise<string>;
265
+ /** Optional (capability WRITE). Backends without it report UNSUPPORTED to callers. */
266
+ createItem?(spec: NewItemSpec): Promise<ItemRef>;
267
+ /**
268
+ * Optional (WRITE). Replace one Secret-class value; the value is never returned or logged. Field "totp"
269
+ * adds a TOTP seed (base32 or otpauth:// URI) and must refuse (POLICY) when the item already has one.
270
+ */
271
+ updateSecret?(ref: ItemRef, field: string, value: string): Promise<void>;
272
+ /** Optional (WRITE). Change only non-secret properties. */
273
+ updateItem?(ref: ItemRef, patch: ItemPatch): Promise<void>;
274
+ /**
275
+ * Optional (WRITE). Raise the sign counter of the item's passkey with this credential id to `counter`.
276
+ * Never lowers it and changes nothing else, so it needs no person at a terminal (owner decision 2026-11-27).
277
+ */
278
+ raisePasskeyCounter?(ref: ItemRef, credentialId: string, counter: number): Promise<void>;
279
+ /**
280
+ * Optional (WRITE). Store a newly created passkey on an item that has none. Add only: an item that
281
+ * already holds a passkey is refused (replacing or deleting one needs a person at a terminal).
282
+ */
283
+ addPasskey?(ref: ItemRef, passkey: NewPasskey): Promise<void>;
284
+ }
285
+
286
+ interface Config {
287
+ /** backend id, default "bw" */
288
+ backend?: string;
289
+ /** per-backend options, e.g. { "bw": { "bin": "/usr/local/bin/bw" } } */
290
+ backends?: Record<string, {
291
+ bin?: string;
292
+ [k: string]: unknown;
293
+ }>;
294
+ web?: {
295
+ /** attach to this loopback CDP endpoint instead of the saved session (alias of endpoint) */
296
+ cdp?: string;
297
+ /** browser provider id: chromium-launch | chromium-cdp | firefox-connect (default: inferred) */
298
+ browser?: string;
299
+ /** loopback endpoint (CDP http://… or Playwright server ws://…) */
300
+ endpoint?: string;
301
+ /** JSON file {"endpoint": "…"} re-read on every connect */
302
+ endpointFile?: string;
303
+ /** alternative playwright-core whose version matches the browser server */
304
+ playwrightModule?: string;
305
+ headless?: boolean;
306
+ executablePath?: string;
307
+ };
308
+ }
309
+ declare function loadConfig(): Config;
310
+
311
+ interface BackendInfo {
312
+ id: string;
313
+ tier: Tier;
314
+ title: string;
315
+ binary: string;
316
+ doc: string;
317
+ }
318
+ declare const BACKEND_INFO: BackendInfo[];
319
+ declare function backendInfo(id: string): BackendInfo | undefined;
320
+ declare function createBackend(id: string, cfg?: Config): Backend;
321
+
322
+ interface RuleSubmit {
323
+ selector: string;
324
+ kind: 'native' | 'click' | 'js';
325
+ /** form rules with kind "js" only: the control sits outside every form, anywhere in the rule's frame */
326
+ outside_form?: true;
327
+ }
328
+ interface Rule {
329
+ id: string;
330
+ /** exact origin the rule applies to (must be bound by the item) */
331
+ top_origin: string;
332
+ frame?: {
333
+ selector: string;
334
+ origin: string;
335
+ };
336
+ /** exactly one of form (native <form>) / container (formless group) */
337
+ form?: string;
338
+ container?: string;
339
+ /** field name -> CSS selector, resolved inside the form/container */
340
+ fields: Record<string, string>;
341
+ submit?: RuleSubmit;
342
+ mode?: 'login' | 'registration';
343
+ /** registration only: selector of the confirmation password field */
344
+ confirm_password?: string;
345
+ /** registration only: the form has no confirmation field */
346
+ password_confirmation?: 'absent';
347
+ /** login only: password-only stage of a multi-step login */
348
+ password_purpose?: 'current';
349
+ }
350
+
351
+ /**
352
+ * Rule-driven location of fields and the submit control. Everything here is evaluated with the page's own
353
+ * querySelectorAll (never Playwright selector engines) and returns handles/booleans, never values.
354
+ */
355
+
356
+ interface RuleScope {
357
+ rule: Rule;
358
+ frame: Frame;
359
+ group: ElementHandle;
360
+ native: boolean;
361
+ }
362
+
363
+ /** Pure scoring of form-field descriptors. No DOM, no values: structure only. */
364
+ type Role = 'username' | 'password' | 'totp';
365
+ interface FieldDescriptor {
366
+ tag: string;
367
+ type: string;
368
+ name: string;
369
+ id: string;
370
+ autocomplete: string;
371
+ ariaLabel: string;
372
+ placeholder: string;
373
+ label: string;
374
+ inputmode: string;
375
+ maxlength: number;
376
+ /** Why the element is not a legitimate target (honeypot / hidden). Empty => usable. */
377
+ reasons: string[];
378
+ disabled: boolean;
379
+ readOnly: boolean;
380
+ }
381
+
382
+ /**
383
+ * Browser provider contract (see docs/browsers.md).
384
+ *
385
+ * A provider answers one question: "give me a Playwright Page (and its Context) for this browser".
386
+ * Everything security-relevant (origin binding, lock, scrubbing, one-shot) lives ABOVE this layer in
387
+ * the engine and is identical for every provider. A provider must never read page content,
388
+ * never log endpoints that contain tokens, and must not close a browser it does not own.
389
+ */
390
+ interface ProviderCapabilities {
391
+ /**
392
+ * `page.evaluate()` runs in an isolated world: page-script globals (window.foo) are NOT visible.
393
+ * Blindfill's own scripts never depend on page globals, so this is informational (Camoufox/Firefox: true).
394
+ */
395
+ evaluateIsolatedWorld: boolean;
396
+ /** A Chrome DevTools Protocol session can be opened for this browser. */
397
+ cdp: boolean;
398
+ /** close() terminates the browser (true only when the provider launched it). */
399
+ ownsBrowser: boolean;
400
+ /** Pages survive a disconnect, so separate CLI invocations can share a page. */
401
+ pagesSurviveDisconnect: boolean;
402
+ }
403
+ interface ProviderOptions {
404
+ /** ws:// or http:// loopback endpoint (connect providers). */
405
+ endpoint?: string;
406
+ /** Path of a JSON file `{ "endpoint": "ws://..." }`, read on every connect (the endpoint may rotate). */
407
+ endpointFile?: string;
408
+ /** Launch providers: browser executable (Chromium-based, e.g. Ego Lite). Env BLINDFILL_CHROMIUM also honoured. */
409
+ executablePath?: string;
410
+ headless?: boolean;
411
+ /** Which context of an attached browser to use (default 0). */
412
+ contextIndex?: number;
413
+ /** Page selection for attached browsers. */
414
+ pageIndex?: number;
415
+ urlIncludes?: string;
416
+ /** borrowed-page provider: the page the caller already holds. */
417
+ page?: Page;
418
+ /** Module specifier or path of an alternative playwright-core (version must match the browser server). */
419
+ playwrightModule?: string;
420
+ /**
421
+ * firefox-connect: loopback Marionette `host:port` of the same browser (started with `-marionette`
422
+ * and the WebAuthn softtoken prefs), used only for passkeys. Env BLINDFILL_MARIONETTE also honoured.
423
+ */
424
+ marionette?: string;
425
+ }
426
+ interface ProviderConnection {
427
+ page: Page;
428
+ context: BrowserContext;
429
+ browser: Browser | null;
430
+ capabilities: ProviderCapabilities;
431
+ /** Marionette host:port for passkeys (firefox-connect only). */
432
+ marionette?: string;
433
+ /**
434
+ * Shared (pre-existing) context: get a page at `url` without navigating someone else's tab
435
+ * (reuse a tab already there, else open a tab). Absent: navigate the selected page.
436
+ */
437
+ openPage?(url: string): Promise<Page>;
438
+ /** Release our hold: disconnect when attached, terminate when owned, nothing when borrowed. */
439
+ close(): Promise<void>;
440
+ }
441
+ interface BrowserProvider {
442
+ /** Stable id used by `--browser <id>`, config `web.browser` and the registry. */
443
+ readonly id: string;
444
+ readonly title: string;
445
+ /** Static, best-effort capabilities (the connection's own capabilities are authoritative). */
446
+ readonly capabilities: ProviderCapabilities;
447
+ /** Whether `session attach` / the saved session file make sense (false for borrowed-page). */
448
+ readonly attachable: boolean;
449
+ connect(opts: ProviderOptions): Promise<ProviderConnection>;
450
+ }
451
+
452
+ /** A passkey a page just created. Everything but `key` is public data the RP already has. */
453
+ interface CreatedPasskey {
454
+ credentialId: string;
455
+ rpId: string;
456
+ userHandle: string;
457
+ signCount: number;
458
+ /** P-256 key: the only kind Bitwarden stores */
459
+ es256: boolean;
460
+ /** BE flag of the new passkey: true in Chromium (as Bitwarden), false in Firefox */
461
+ backupEligible: boolean;
462
+ /** PKCS#8 DER */
463
+ key: SecretHandle;
464
+ }
465
+ interface Detected {
466
+ desc: FieldDescriptor;
467
+ handle: ElementHandle;
468
+ frame: Frame;
469
+ inTop: boolean;
470
+ frameUrl: string;
471
+ }
472
+ /** Structure-only description of a field, safe to show an agent. Never a value. */
473
+ interface CandidateInfo {
474
+ ref: string;
475
+ frame: 'top' | 'iframe';
476
+ frameOrigin: string;
477
+ type: string;
478
+ name: string;
479
+ id: string;
480
+ label: string;
481
+ autocomplete: string;
482
+ guess: {
483
+ role: Role;
484
+ score: number;
485
+ } | null;
486
+ usable: boolean;
487
+ rejectedBecause: string[];
488
+ }
489
+ interface ProbeResult {
490
+ origin: string;
491
+ url: string;
492
+ title: string;
493
+ candidates: CandidateInfo[];
494
+ rejectedHidden: number;
495
+ skippedFrames: number;
496
+ }
497
+ interface Expect {
498
+ urlIncludes?: string;
499
+ urlRegex?: string;
500
+ selector?: string;
501
+ failSelector?: string;
502
+ timeoutMs?: number;
503
+ }
504
+ interface EvidenceResult {
505
+ outcome: 'success' | 'failure' | 'unknown';
506
+ matched: 'url' | 'selector' | 'failSelector' | null;
507
+ url: string;
508
+ }
509
+ declare class WebActuator {
510
+ page: Page;
511
+ private conn;
512
+ readonly kind: "web";
513
+ policy: SessionPolicy;
514
+ readonly capabilities: ProviderCapabilities;
515
+ readonly providerId: string;
516
+ /** Documents bound by the last prepare (main frame + frames of located fields); fillInto never rebinds. */
517
+ private bound;
518
+ private constructor();
519
+ /** Generic entry: any registered browser provider (see docs/browsers.md). */
520
+ static fromProvider(providerId: string, opts?: ProviderOptions, policy?: SessionPolicy): Promise<WebActuator>;
521
+ /** Mode 1: Playwright-launched browser (bundled Chromium or opts.executablePath / BLINDFILL_CHROMIUM). */
522
+ static launch(opts?: {
523
+ headless?: boolean;
524
+ executablePath?: string;
525
+ policy?: SessionPolicy;
526
+ }): Promise<WebActuator>;
527
+ /** Mode 2: attach over CDP. Loopback endpoints only. */
528
+ static connectCDP(endpoint: string, opts?: {
529
+ urlIncludes?: string;
530
+ pageIndex?: number;
531
+ policy?: SessionPolicy;
532
+ }): Promise<WebActuator>;
533
+ /** Mode 2b: attach to a Playwright browser server (Firefox / Camoufox). Loopback only. */
534
+ static connectFirefox(endpoint: string, opts?: {
535
+ urlIncludes?: string;
536
+ pageIndex?: number;
537
+ playwrightModule?: string;
538
+ policy?: SessionPolicy;
539
+ }): Promise<WebActuator>;
540
+ /** Mode 3: in-process Playwright Page owned by the caller (never closed by us). Any browser. */
541
+ static fromPage(page: Page, policy?: SessionPolicy): WebActuator;
542
+ /** Real identity as observed from the browser, never as claimed by the caller. */
543
+ identify(): {
544
+ target: WebTarget;
545
+ url: string;
546
+ };
547
+ navigate(url: string): Promise<void>;
548
+ pageText(): Promise<string>;
549
+ html(): Promise<string>;
550
+ screenshot(): Promise<Buffer>;
551
+ /** Rule-less detection: main frame only. Fields in child frames are reachable only through a rule. */
552
+ detect(): Promise<Detected[]>;
553
+ private signature;
554
+ /** Wait for a form to appear and stop changing (SPA render/re-render). */
555
+ detectStable(maxMs?: number): Promise<Detected[]>;
556
+ private info;
557
+ /** Structure only: refused after a secret fill. */
558
+ probe(): Promise<ProbeResult>;
559
+ /** Choose the main-frame field for a role/name (rule-less path; child frames need a rule). */
560
+ locate(what: {
561
+ role: Role;
562
+ } | {
563
+ name: string;
564
+ }, ds?: Detected[]): Promise<Detected>;
565
+ /**
566
+ * Locate a field by a legacy (v1) CSS selector from the vault item's blindfill.rules. Main frame only:
567
+ * v1 selectors name no frame. The selector must match exactly one usable element.
568
+ */
569
+ locateBySelector(selector: string): Promise<Detected>;
570
+ /**
571
+ * Raw text of the one main-frame element `selector` matches, for TOTP enrollment: an otpauth:// URI in
572
+ * its href, value or text, else its value (inputs) or text. Returned to the engine only, never to a caller.
573
+ * Main frame only, like v1 selectors: a key inside an iframe is not reachable.
574
+ */
575
+ readSetupKey(selector: string): Promise<string>;
576
+ private fillOnce;
577
+ /** Bind the current documents (main frame + `frames`) at the end of prepare. */
578
+ bindDocument(frames: Frame[]): Promise<void>;
579
+ /**
580
+ * The field must live in the document bound at prepare, and the main frame must still show its bound
581
+ * document. A cross-document navigation (same-origin included) or a replaced frame invalidates the
582
+ * handle's execution context, so the comparison throws and we refuse. pushState keeps the document.
583
+ */
584
+ private assertBoundDocument;
585
+ /**
586
+ * Write a value into the field chosen by `relocate`, verifying exact content, surviving one SPA
587
+ * re-render, and re-checking origin binding immediately before typing. Throws; never returns the value.
588
+ */
589
+ fillInto(relocate: () => Promise<Detected>, value: Buffer | string, isBound: (url: string) => boolean): Promise<{
590
+ method: 'fill' | 'keys';
591
+ last: Detected;
592
+ }>;
593
+ /**
594
+ * Rule-less form choice: the password and username must share one form owner, and the
595
+ * page must offer exactly one plausible login form. Sign-up / change-password / confirm pages refuse.
596
+ * Messages never echo page or caller input.
597
+ */
598
+ assertGenericScope(pwd: Detected, user: Detected | undefined, ds: Detected[]): Promise<void>;
599
+ /** Rule-less submit: exactly one visible native submit of the field's own form, POST, _self, bound action. */
600
+ private resolveGenericSubmit;
601
+ /** Validate (no click): lets the engine refuse before any secret is read. A disabled submit passes here. */
602
+ checkSubmit(near: Detected, isBound: (url: string) => boolean): Promise<void>;
603
+ /** Click the single validated native submit of `near`'s form. */
604
+ submit(near: Detected, isBound: (url: string) => boolean): Promise<'click'>;
605
+ openRule(rule: Rule, isBound: (url: string) => boolean): Promise<RuleScope>;
606
+ locateRule(scope: RuleScope, name: string): Promise<Detected>;
607
+ checkRuleSubmit(scope: RuleScope, isBound: (url: string) => boolean): Promise<void>;
608
+ passwordCount(scope: RuleScope): Promise<number>;
609
+ /** Validate + click the rule's submit control once. */
610
+ submitRule(scope: RuleScope, isBound: (url: string) => boolean): Promise<'click'>;
611
+ /** Registration: both password fields hold the same non-empty value. Returns only a boolean. */
612
+ sameValue(a: Detected, b: Detected): Promise<boolean>;
613
+ /** Pages of the attached context: index, origin and path only (never query, fragment or title). */
614
+ listPages(): {
615
+ index: number;
616
+ origin: string;
617
+ path: string;
618
+ current: boolean;
619
+ }[];
620
+ /** A sibling actuator on another page of the same context; shares the policy (lock/one-shot). */
621
+ withPageIndex(index: number): WebActuator;
622
+ /** Bounded structural diagnosis: no values, no raw attribute text, no labels. */
623
+ diagnose(rule?: Rule): Promise<unknown>;
624
+ /** Caller-selected unique visible evidence; booleans only. Allowed while locked. */
625
+ verify(successSelector: string, failureSelector?: string): Promise<{
626
+ success: boolean;
627
+ failure: boolean;
628
+ ambiguous: boolean;
629
+ }>;
630
+ /** Outcome evidence from caller-specified URL/selectors. Returns booleans/enums, never page content. */
631
+ evidence(spec: Expect | undefined): Promise<EvidenceResult>;
632
+ /** How this browser can hold a passkey: Chromium over CDP, Firefox/Camoufox over Marionette, or not. */
633
+ get passkeyRoute(): 'cdp' | 'marionette' | null;
634
+ private passkeyRouteOrThrow;
635
+ /**
636
+ * Passkey sign-in (ARCHITECTURE 3.8): the credential is loaded into a virtual authenticator (Chromium:
637
+ * per page over CDP; Firefox: browser-wide over Marionette), the page's own
638
+ * navigator.credentials.get() uses it, and it is removed after the first assertion or the timeout.
639
+ * The private key goes handle -> browser; the page and the caller never receive it.
640
+ * `backupEligible` (Chromium only) is the BE flag the passkey was created with; Firefox signs BE=0.
641
+ */
642
+ passkeyAssert(handle: SecretHandle, opts?: {
643
+ click?: string;
644
+ timeoutMs?: number;
645
+ backupEligible?: boolean;
646
+ }): Promise<{
647
+ asserted: boolean;
648
+ signCount: number | null;
649
+ credentialId: string;
650
+ }>;
651
+ /**
652
+ * Firefox: Marionette has no assertion event, so the authenticator is polled until the credential's
653
+ * counter moves. Firefox signs with the stored count, then counts up: adding stored + 1 (0 stays 0,
654
+ * Bitwarden's rule) makes it report what Chromium and the Android host report.
655
+ */
656
+ private marionetteAssert;
657
+ /**
658
+ * Passkey registration (ARCHITECTURE 3.8): an empty virtual authenticator answers the page's own
659
+ * navigator.credentials.create() once and is removed. The new private key comes back from the
660
+ * browser only inside the returned handle (registered with the scrubber first); the caller and
661
+ * the page never receive it.
662
+ */
663
+ passkeyCreate(opts?: {
664
+ click?: string;
665
+ timeoutMs?: number;
666
+ }): Promise<CreatedPasskey | null>;
667
+ /**
668
+ * Firefox: polls the empty authenticator until the page's create() put a credential in it. Firefox
669
+ * cannot set the backup-eligible flag, so the passkey is BE=0 (stored as blindfill.passkey_be=0).
670
+ */
671
+ private marionetteCreate;
672
+ close(): Promise<void>;
673
+ }
674
+
675
+ /** What the companion reports. pkg and signer come from the system (AssistStructure / CallingAppInfo / PackageManager). */
676
+ interface PhoneRequest {
677
+ kind: 'password' | 'password-new' | 'passkey' | 'passkey-create';
678
+ pkg: string;
679
+ /** SHA-256 of the app's single signing certificate, hex; null when it has several */
680
+ signer: string | null;
681
+ /** the screen is a WebView or browser page (web logins go through the web actuator) */
682
+ web: boolean;
683
+ passwords?: number;
684
+ newPassword?: boolean;
685
+ rpId?: string;
686
+ clientDataHash?: string;
687
+ /** password: asked through Credential Manager (GetPasswordOption), so there is no form to describe */
688
+ cm?: boolean;
689
+ /** web: scheme and domain of the WebView document, and how many distinct domains the screen shows */
690
+ webScheme?: string;
691
+ webDomain?: string;
692
+ webDomains?: number;
693
+ /** passkey-create: user.id (base64url) and pubKeyCredParams algorithms from the app's request */
694
+ userId?: string;
695
+ algs?: number[];
696
+ }
697
+ interface ArmOptions {
698
+ serial: string;
699
+ mode: 'password' | 'password-new' | 'passkey' | 'passkey-create';
700
+ /** display labels for the phone's suggestion; not secret */
701
+ item: string;
702
+ user?: string;
703
+ rpId?: string;
704
+ timeoutMs?: number;
705
+ }
706
+ type ServeResult = {
707
+ status: 'answered';
708
+ request: PhoneRequest;
709
+ } | {
710
+ status: 'expired';
711
+ } | {
712
+ status: 'refused';
713
+ reason: string;
714
+ request?: PhoneRequest;
715
+ };
716
+ /**
717
+ * Android actuator (companion APK, ARCHITECTURE 3.2). The host never pushes a secret: it arms the
718
+ * companion with a one-time token, listens on a loopback port the phone reaches through
719
+ * `adb reverse`, and answers exactly one request. `answer` sees the system-attested app identity
720
+ * and decides; whatever it returns goes to the phone and nowhere else.
721
+ */
722
+ declare class AndroidActuator {
723
+ private adbBin;
724
+ readonly kind: "android";
725
+ constructor(adbBin?: any);
726
+ private adb;
727
+ /** Serial must name exactly one attached device (never "the only one"). */
728
+ assertDevice(serial: string): Promise<void>;
729
+ /**
730
+ * Refusal reason, or null when the installed companion is signed by the expected certificate.
731
+ * Reads the APK PackageManager installed (`pm path` + `exec-out cat`) and parses its APK Signing
732
+ * Block on the host: nothing the companion says about itself is trusted. Cached per install
733
+ * (path + lastUpdateTime change on every install or update).
734
+ */
735
+ checkCompanion(serial: string): Promise<string | null>;
736
+ /**
737
+ * Install (or update) the packaged companion APK after checking its signer. With setServices,
738
+ * switch autofill and credential provider to it. Returns the previous values of those settings
739
+ * ("null" = unset) so they can be restored.
740
+ */
741
+ install(serial: string, setServices: boolean): Promise<{
742
+ apk: string;
743
+ previous: Record<string, string>;
744
+ }>;
745
+ serve(o: ArmOptions, answer: (r: PhoneRequest) => Promise<Record<string, unknown>>): Promise<ServeResult>;
746
+ }
747
+
748
+ interface ProfileDoc {
749
+ version: 1;
750
+ /** backend item id */
751
+ item: string;
752
+ /** optional human-readable item name; if present it must still match (detects a swapped item) */
753
+ item_name?: string;
754
+ web: {
755
+ origin: string;
756
+ /** rule id (looked up in the item's rules) or an inline login rule */
757
+ rule: string | Rule;
758
+ fields?: string[];
759
+ submit: boolean;
760
+ };
761
+ }
762
+ interface Profile {
763
+ name: string;
764
+ doc: ProfileDoc;
765
+ /** sha256 of the canonical JSON; pass it back to detect an edited recipe */
766
+ revision: string;
767
+ }
768
+
769
+ interface ItemSelector {
770
+ /** backend item id */
771
+ item?: string;
772
+ /** free-text search; must resolve to exactly one item */
773
+ query?: string;
774
+ }
775
+ interface FillRequest extends ItemSelector {
776
+ /** field names: username, password, totp, or other item field names. Default: username,password */
777
+ fields?: string[];
778
+ /** navigate here first (the item binding is checked against the page the browser ends up on) */
779
+ url?: string;
780
+ submit?: boolean;
781
+ expect?: Expect;
782
+ /** explicit rule id from the item's rules (required for registration; chosen by origin for login) */
783
+ rule?: string;
784
+ }
785
+ interface FillResult {
786
+ origin: string;
787
+ item: {
788
+ id: string;
789
+ name: string;
790
+ };
791
+ filled: string[];
792
+ /** true when a secret was written: the session is now locked */
793
+ locked: boolean;
794
+ submitted: boolean;
795
+ outcome: EvidenceResult['outcome'] | 'not_submitted';
796
+ evidence?: {
797
+ matched: EvidenceResult['matched'];
798
+ url: string;
799
+ };
800
+ notes: string[];
801
+ }
802
+ type ReadableItem = {
803
+ id: string;
804
+ name: string;
805
+ username?: string;
806
+ uris: {
807
+ uri: string;
808
+ match: string;
809
+ }[];
810
+ readable: Record<string, string>;
811
+ /** names only: these can be filled but never read */
812
+ secretFields: string[];
813
+ hasTotp: boolean;
814
+ control: {
815
+ submit: string;
816
+ signers: string[];
817
+ hasRules: boolean;
818
+ };
819
+ notes?: string;
820
+ };
821
+ interface DiscoverResult {
822
+ status: 'planned';
823
+ origin: string;
824
+ item: {
825
+ id: string;
826
+ name: string;
827
+ };
828
+ rule_id: string | null;
829
+ fields: string[];
830
+ submit: 'not_attempted';
831
+ submit_validated: boolean;
832
+ secrets_read: false;
833
+ }
834
+ interface RegisterResult {
835
+ origin: string;
836
+ item: {
837
+ id: string;
838
+ name: string;
839
+ };
840
+ rule_id: string;
841
+ filled: string[];
842
+ locked: boolean;
843
+ submitted: boolean;
844
+ registration_outcome: EvidenceResult['outcome'] | 'not_submitted';
845
+ evidence?: {
846
+ matched: EvidenceResult['matched'];
847
+ url: string;
848
+ };
849
+ notes: string[];
850
+ }
851
+ declare class Engine {
852
+ private backend;
853
+ private web?;
854
+ private persist;
855
+ constructor(backend: Backend, web?: WebActuator | undefined, persist?: () => void);
856
+ private actuator;
857
+ private rawActuator;
858
+ resolveItem(sel: ItemSelector, target?: Target): Promise<ItemRef>;
859
+ private handoffView;
860
+ /**
861
+ * Pause: from now every agent-driven action (fill, probe, discover, diagnose, verify, register, totp fill)
862
+ * is refused until resume. The agent learns only origin+path of open pages. The human works in the
863
+ * visible browser; blindfill never transmits, records or inspects what they do.
864
+ */
865
+ handoffPause(reason: string): Record<string, unknown>;
866
+ /**
867
+ * Resume. Nothing is trusted from the pause: the post-fill lock and one-shot counters are untouched, and
868
+ * the next fill re-checks origin binding against wherever the page is now. The human is not authenticated
869
+ * (an agent could call resume itself); the controls here limit what an agent can do, not who it is.
870
+ */
871
+ handoffResume(): Record<string, unknown>;
872
+ handoffStatus(): Record<string, unknown>;
873
+ itemList(query?: string): Promise<unknown>;
874
+ /** Structural status: which fields exist and how they are classified; no values. */
875
+ itemStatus(sel: ItemSelector): Promise<unknown>;
876
+ itemRename(sel: ItemSelector, newName: string): Promise<unknown>;
877
+ /**
878
+ * Edit one item. Replacing origins, setting any blindfill.* control field and writing a secret-class value
879
+ * widen or change what can be filled, so the caller must assert a human is at a terminal (`human: true`;
880
+ * the CLI passes isTTY). Plain readable fields do not need it. Secret values are written, never read.
881
+ */
882
+ itemEdit(sel: ItemSelector, req: {
883
+ origins?: string[];
884
+ username?: string;
885
+ set?: Record<string, string>;
886
+ unset?: string[];
887
+ secrets?: Record<string, string>;
888
+ human: boolean;
889
+ }): Promise<unknown>;
890
+ private writable;
891
+ /** Exact origin only: https (or http on loopback for local development); no path, query or credentials. */
892
+ static canonicalOrigin(value: string): string;
893
+ private assertNameFree;
894
+ /**
895
+ * Generate a password under an optional data-only policy and save it as a new item. The value is written
896
+ * straight to the backend and is never returned, printed or logged. Does not touch any website.
897
+ * `noPassword` saves the item without one, for sites registered with a passkey only.
898
+ */
899
+ itemGenerate(req: {
900
+ name: string;
901
+ origins: string[];
902
+ username: string;
903
+ displayName?: string;
904
+ length?: number;
905
+ policy?: unknown;
906
+ /** also bind this Android app (androidapp://<pkg>); no signer pin unless a person adds one */
907
+ androidApp?: string;
908
+ noPassword?: boolean;
909
+ }): Promise<Record<string, unknown>>;
910
+ /** Create an item from values the caller already holds (the CLI reads the password from a TTY). */
911
+ itemCreate(req: {
912
+ name?: string;
913
+ origins: string[];
914
+ username: string;
915
+ password: string;
916
+ totpSeed?: string;
917
+ policy?: unknown;
918
+ }): Promise<Record<string, unknown>>;
919
+ /** Read or replace only the non-secret password policy; never changes the password. Writes need a human. */
920
+ itemPasswordPolicy(sel: ItemSelector, policy?: unknown, human?: boolean): Promise<Record<string, unknown>>;
921
+ itemShow(sel: ItemSelector): Promise<ReadableItem>;
922
+ totpCode(sel: ItemSelector): Promise<{
923
+ code: string;
924
+ item: string;
925
+ note: string;
926
+ }>;
927
+ /**
928
+ * Add a TOTP seed to an item that has none, read by blindfill from one element of the current page
929
+ * (a setup key, or an otpauth:// URI in its href, value or text). The seed goes straight to the backend;
930
+ * nothing about it is returned, printed or logged. Add-only: an existing seed is never replaced.
931
+ */
932
+ totpEnroll(req: ItemSelector & {
933
+ selector: string;
934
+ }): Promise<Record<string, unknown>>;
935
+ probe(url?: string): Promise<ProbeResult & {
936
+ items?: {
937
+ id: string;
938
+ name?: string;
939
+ }[];
940
+ }>;
941
+ candidates(role?: Role, url?: string): Promise<{
942
+ origin: string;
943
+ candidates: CandidateInfo[];
944
+ }>;
945
+ /** Rules for an item: its `blindfill.rules` field plus an optional private local file. */
946
+ private rulesFor;
947
+ /** Pick the rule for this page. Login rules are chosen by observed origin; registration needs an explicit id. */
948
+ private selectRule;
949
+ /** Steps 1-3 of every web operation: binding, rule, field classification, locate-all. No secret is read. */
950
+ private prepare;
951
+ /** Value-free plan: what a fill would do. Reads no secret and touches no field. */
952
+ discover(req: FillRequest & {
953
+ ruleOverride?: Rule;
954
+ registration?: boolean;
955
+ }): Promise<DiscoverResult>;
956
+ /** Value-free structural diagnosis of the page (and of the rule mapping when an item/rule is given). */
957
+ diagnose(req: ItemSelector & {
958
+ rule?: string;
959
+ url?: string;
960
+ ruleOverride?: Rule;
961
+ }): Promise<unknown>;
962
+ /** Caller-supplied evidence only; never identity. Allowed after a fill (the lock does not block booleans). */
963
+ verify(req: {
964
+ success: string;
965
+ failure?: string;
966
+ }): Promise<unknown>;
967
+ /** Pages of the attached browser context (origin + path only). */
968
+ pages(): unknown;
969
+ /** Run a recipe: select one already-open page whose origin matches; no navigation, no new authority. */
970
+ runProfile(profile: Profile, opts: {
971
+ check?: boolean;
972
+ diagnose?: boolean;
973
+ submit?: boolean;
974
+ page?: number;
975
+ expect?: Expect;
976
+ }): Promise<unknown>;
977
+ fill(req: FillRequest & {
978
+ ruleOverride?: Rule;
979
+ }): Promise<FillResult>;
980
+ /**
981
+ * Account registration with an item that binds the page and an explicit registration rule.
982
+ * The stored password is read ONCE and typed into the password field and (unless the
983
+ * rule says the form has none) the separate confirmation field; equality is checked inside the page and
984
+ * only a boolean comes back. Fill-only unless submit=true; at most one submit; never retried.
985
+ */
986
+ register(req: FillRequest & {
987
+ rule: string;
988
+ ruleOverride?: Rule;
989
+ }): Promise<RegisterResult>;
990
+ private resolveForRegistration;
991
+ fillTotp(req: Omit<FillRequest, 'fields'>): Promise<FillResult>;
992
+ /**
993
+ * Raise the vault's passkey counter after a signature (owner decision 2026-11-27: no terminal needed).
994
+ * Never retried: a failure is audited and reported, and the next sign-in repeats the counter.
995
+ */
996
+ private writeCounter;
997
+ /**
998
+ * Passkey sign-in (web: Chromium over CDP, Firefox/Camoufox over Marionette). Checks the item binding and the passkey's rpId against
999
+ * the page before the key is read, then lets the page's own WebAuthn request use it once, then
1000
+ * writes the reported counter back to the vault.
1001
+ */
1002
+ passkey(req: ItemSelector & {
1003
+ url?: string;
1004
+ click?: string;
1005
+ expect?: Expect;
1006
+ }): Promise<Record<string, unknown>>;
1007
+ /**
1008
+ * Passkey registration (web: Chromium or Firefox/Camoufox), add only (owner decision 2026-11-27, no terminal):
1009
+ * the item must bind the page and hold no passkey.
1010
+ * The page's own navigator.credentials.create() is answered once by an empty virtual authenticator;
1011
+ * the new key goes from the browser into the vault (one `bw edit`), never to the caller.
1012
+ */
1013
+ passkeyRegister(req: ItemSelector & {
1014
+ url?: string;
1015
+ click?: string;
1016
+ expect?: Expect;
1017
+ timeoutMs?: number;
1018
+ }): Promise<Record<string, unknown>>;
1019
+ /**
1020
+ * Android (companion APK): arm the phone for one fill. The phone reports the app asking (system
1021
+ * attested package + signer); the item must bind the package (androidapp://; a blindfill.signers pin
1022
+ * is checked when present) before any secret is read, or, for a WebView, the https domain it shows.
1023
+ * kind=password: username+password go to the companion's autofill dataset or Credential Manager
1024
+ * password entry. kind=password-new: same, into a sign-up form (password and confirmation).
1025
+ * kind=passkey: the host signs (key never leaves the host); the phone gets only the assertion.
1026
+ */
1027
+ androidOffer(req: ItemSelector & {
1028
+ serial: string;
1029
+ kind: 'password' | 'password-new' | 'passkey';
1030
+ timeoutMs?: number;
1031
+ }, android?: AndroidActuator): Promise<Record<string, unknown>>;
1032
+ /**
1033
+ * Android passkey registration (companion, design 5.5), add only like passkeyRegister: the item must
1034
+ * bind the app (androidapp://, plus its blindfill.signers pin if it has one) and the rpId (a web URI
1035
+ * on it, standing in for the Digital Asset Links check a provider owes non-browser callers) and
1036
+ * hold no passkey. The host makes the key and stores it before the phone gets the
1037
+ * attestation; the key stays here.
1038
+ */
1039
+ androidPasskeyRegister(req: ItemSelector & {
1040
+ serial: string;
1041
+ rpId: string;
1042
+ timeoutMs?: number;
1043
+ }, android?: AndroidActuator): Promise<Record<string, unknown>>;
1044
+ stop(): Promise<void>;
1045
+ }
1046
+
1047
+ interface WithPageOptions {
1048
+ /** vault backend; default: created from the blindfill config */
1049
+ backend?: Backend;
1050
+ config?: Config;
1051
+ /** reuse a policy to keep the post-fill lock / one-shot state across several withPage calls */
1052
+ policy?: SessionPolicy;
1053
+ }
1054
+ /**
1055
+ * Library entry for owners that already hold a Playwright Page (any browser, incl. Firefox/Camoufox).
1056
+ * The page is borrowed: blindfill never navigates away on its own, never closes it, and the engine
1057
+ * enforces the same binding, lock, one-shot and scrubbing rules as the CLI/MCP.
1058
+ *
1059
+ * await withPage(page, { backend }, (bf) => bf.fill({ item: 'abc', submit: true }));
1060
+ */
1061
+ declare function withPage<T>(page: Page, opts: WithPageOptions, fn: (engine: Engine) => Promise<T>): Promise<T>;
1062
+
1063
+ declare function registerProvider(p: BrowserProvider): void;
1064
+ declare function getProvider(id: string): BrowserProvider;
1065
+ declare function listProviders(): BrowserProvider[];
1066
+
1067
+ export { AndroidActuator, BACKEND_INFO, BlindfillError, CONTROL_PREFIX, Engine, REDACTED, Scrubber, SecretHandle, SessionPolicy, SubmitGuard, WebActuator, androidPackages, assertBound, audit, auditPath, backendInfo, checkAndroidBinding, checkBinding, checkWebBinding, classifyBwFieldType, classifyKey, createBackend, formatTarget, getProvider, globalScrubber, isControlField, isLoopbackHost, isReadable, listProviders, loadConfig, matchUri, parseTarget, registerProvider, stateDir, webUris, withPage };
1068
+ export type { AndroidTarget, AuditEntry, Backend, BrowserProvider, Cap, Config, ControlFields, Expect, FieldClass, FillRequest, FillResult, FindQuery, ItemMeta, ItemRef, ItemUri, MatchResult, MatchType, ProbeResult, ProviderCapabilities, ProviderConnection, ProviderOptions, SecretSink, SubmitPolicy, Target, Tier, WebTarget, WithPageOptions };