import { S as Storage, d as GuantrRule, k as MatchConditionFn, C as Condition } from '../shared/guantr.BxozAIHO.cjs'; declare class InMemoryStorage implements Storage { private storage; /** * Atomically replaces all stored rules with the provided rules. * Because JavaScript is single-threaded and {@link Map.clear} followed by * {@link Map.set} runs synchronously within the same call, this operation * is effectively atomic — no concurrent `queryRules` can observe an * intermediate state. * @param rules - Array of rules to set. */ setRules(rules: GuantrRule[]): Promise; /** * Retrieves all stored rules. * @returns An array of all stored rules. */ getRules(): Promise<{ resource: string; action: string; matchCondition?: MatchConditionFn | Condition | null; effect: "allow" | "deny"; }[]>; /** * Retrieves rules for a given action and resource. * @param action - The action to filter by. * @param resource - The resource to filter by. * @returns An array of matching rules, or an empty array if none exist. */ queryRules(action: string, resource: string): Promise<{ resource: string; action: string; matchCondition?: MatchConditionFn | Condition | null; effect: "allow" | "deny"; }[]>; cache: { set: (key: string, value: T) => Promise; get: (key: string) => Promise; has: (key: string) => Promise; clear: () => Promise; }; } export { InMemoryStorage, Storage };