import { type Policy, type PolicyResolver } from './types.js'; /** * Parse + validate + normalize a TOML policy file. Throws PolicyLoadError on * any schema violation with a message pointing at the offending field. * * Normalization: * - addresses lowercased so allowlist membership is case-insensitive * - selectors lowercased likewise * - max_value_wei string → bigint * * Permissive mode tolerates missing strict fields (they're ignored anyway). * Strict mode applies defaults: chain_ids must be present; everything else * defaults to a closed/zero value. */ export declare function parsePolicy(source: string): Policy; /** * A PolicyResolver that returns the same permissive policy for every handle. * Useful for tests that want to exercise sign methods without provisioning * a TOML file per portal. */ export declare function permissivePolicyResolver(): PolicyResolver; /** * File-backed PolicyResolver: reads ~/.sigil/policy/.toml every time * resolve() is called. Sign calls are human-paced so the read is cheap; the * fresh read also means policy edits take effect immediately (no daemon * restart). */ export declare class FileSystemPolicyResolver implements PolicyResolver { #private; constructor(policyDir: string); resolve(handle: string): Policy; } //# sourceMappingURL=loader.d.ts.map