import type { SignatureVerdict } from "./signature"; export type HelperLocation = { readonly kind: "found"; readonly path: string; } | { readonly kind: "missing"; } | { readonly kind: "invalid"; readonly rejected: readonly string[]; }; /** * The two candidates every store-inlining bundle tries first, relative to its own file (design 1, shape A): * `/bin/darwin/omo-keychain` (the omo-ai package, the compiled payload), then `/omo-keychain` * (the desktop runtime directory). */ export declare function bundleCandidates(moduleUrl: string): readonly string[]; /** * Other signature-valid copies on this machine, tried after the bundle's own (addendum rows 9 and 10): the desktop * app's copies and a bun-global omo-ai install. These are macOS paths, so they are joined with POSIX separators on * every host. */ export declare function machineCandidates(home: string, arch?: string): readonly string[]; /** * The first candidate that exists AND passes the signature check. A missing candidate is skipped. A present candidate * that fails the check is never used and is reported; the search continues only to other verified copies (addendum * row 10 amends v9's "refuse, never fall through" to exactly this). Never PATH, never an environment variable. */ export declare function locateHelper(candidates: readonly string[], verify: (path: string) => Promise): Promise;