import { evaluate, merge, toRuleset } from "./evaluate.ts";
import type { PermissionAction, PermissionRule, PermissionRuleset } from "./types.ts";
export { evaluate, merge, toRuleset };
export type { PermissionAction, PermissionRule, PermissionRuleset };
export declare const KNOWN_PERMISSIONS: readonly ["read", "edit", "write", "glob", "grep", "list", "bash", "task", "external_directory", "todowrite", "question", "webfetch", "websearch", "repo_clone", "repo_overview", "lsp", "doom_loop", "skill"];
export declare function disabled(permission: string, ruleset: PermissionRuleset): boolean;
export declare class PermissionManager {
    private ruleset;
    constructor(config?: Record<string, unknown>);
    getRuleset(): PermissionRuleset;
    update(config: Record<string, unknown>): void;
    merge(other: PermissionRuleset): void;
    check(permission: string, pattern?: string): PermissionAction;
    isDenied(permission: string, pattern?: string): boolean;
    isAllowed(permission: string, pattern?: string): boolean;
    needsAsk(permission: string, pattern?: string): boolean;
    findMatchingRule(permission: string, pattern?: string): PermissionRule;
}
//# sourceMappingURL=index.d.ts.map