/** * Dev-only LIT Action runtime guard. * * A handful of LIT Actions in this repo exist purely as deploy-time * utilities or test harnesses (always-signer, authorization-dummy[-b], * address-probe-signer, process-payment-sign-only). They intentionally * accept arbitrary inputs and return signatures with no authorization * checks, because their only job is to exercise the LIT / PKP group * plumbing. * * These files are shipped in `src/` so the existing build / deploy * pipeline still discovers them, but if one of their CIDs were ever * registered in the same LIT group as a user vault PKP, an attacker * could request signatures over attacker-chosen payloads (see audit * finding C-3). * * `assertDevActionAllowed` is a defense-in-depth barrier against * accidental production invocation: * * 1. Callers MUST pass `__dangerousTestOnly: true` in their jsParams. * Production callers never set this flag. * 2. Callers MUST pass a numeric `chainId` (audit H-3). Without it the guard * cannot tell whether it is running against a production chain, so a * missing/non-numeric chainId now fails closed. * 3. We reject every production deployment chain in `FORBIDDEN_CHAIN_IDS` * (Ethereum mainnet + Sepolia today; add future mainnets here). * * The guard is NOT a substitute for LIT group hygiene — a misconfigured * group is still the primary risk — but it makes "I accidentally called * the dummy signer against a production PKP" fail closed. */ interface DevActionGuardArgs { __dangerousTestOnly?: unknown; chainId?: unknown; } export declare function assertDevActionAllowed(actionName: string, args: DevActionGuardArgs | undefined | null): void; export {}; //# sourceMappingURL=dev-action-guard.d.ts.map