import type { PermissionRequest } from "./parsers.ts";
export type AutoCommandVerdict = "allow" | "ask";
export interface AutoDecision {
    /** Approve an ask that comes only from the preset's own rule (a user's rules still win). */
    readonly approveBlanketAsk: boolean;
}
/**
 * Judges a shell command for the `auto` preset: every simple command must be a listed read-only
 * program run in the project root, whose every word the program grammar classifies, and every
 * path word must name an approvable project file or directory. Anything else asks.
 */
export declare function judgeAutoCommand(command: string, cwd: string): AutoCommandVerdict;
/**
 * The `auto` preset's allowlist (decision table on senpi#2614). Each decision is made on the exact
 * target the tool will open, obtained from the tool's own resolver (`resolveReadPathAsync` for `read`,
 * `resolveToCwd` for `write`, `edit`, `ls`, `find` and `grep`, `parsePatch` + `resolvePatchPath` for `apply_patch`).
 * Every other call keeps the preset's ask.
 */
export declare function decideAuto(toolName: string, input: Record<string, unknown>, request: PermissionRequest, cwd: string): Promise<AutoDecision>;
//# sourceMappingURL=auto-policy.d.ts.map