import { type RuleSetT } from "./schema.js"; /** * Provide the bundled rules object explicitly. Useful in environments * where `import.meta.url`-based filesystem reads are unavailable or * unreliable (Cloudflare Workers, Deno Deploy, browsers): the caller * imports `plainstamp/rules/seed.json` directly and hands the parsed * object to this function before any other plainstamp lookup. * * Idempotent. Calling with `null` clears the override. * * @example * import rulesJson from "plainstamp/rules/seed.json"; * import { setBundledRules, executeMcpTool } from "plainstamp"; * setBundledRules(rulesJson); */ export declare function setBundledRules(rules: unknown | null): void; /** * Loads and validates the bundled seed rules. If `setBundledRules()` * has been called, returns that override. Otherwise reads from the * package's `rules/seed.json` file via `node:fs` + `import.meta.url`. * * Throws on schema violation — an invalid rules file is a hard * failure because the product's correctness depends on it. * * In non-Node environments (Workers, browsers), `import.meta.url` may * not resolve to a usable path; in that case, callers MUST set the * override via `setBundledRules()` before any lookup. */ export declare function loadBundledRules(): RuleSetT; /** Loads rules from an arbitrary path. Useful for tests and for callers that maintain their own rules feed. */ export declare function loadRulesFromPath(path: string): RuleSetT; //# sourceMappingURL=rules-loader.d.ts.map