import type { RequestPermissionRequest, RequestPermissionResponse } from '@agentclientprotocol/sdk';
import type { UiAgentPermissionChoice } from '@histoire/shared';
/** Cancellation; ACP reserves it for abandoned requests, never an explicit choice. */
export declare const cancelledPermission: RequestPermissionResponse;
/** One card choice and the exact agent response it selects. */
export interface PermissionChoice extends UiAgentPermissionChoice {
    /** Response sent when the user picks this choice. */
    response: RequestPermissionResponse;
}
/**
 * Selects the first agent option of a kind.
 * @param request Agent permission request.
 * @param kind ACP option kind.
 */
export declare function selectOption(request: RequestPermissionRequest, kind: RequestPermissionRequest['options'][number]['kind']): RequestPermissionResponse | undefined;
/**
 * Explicit user or policy denial: the agent's `reject_once` option, else cancellation.
 * @param request Agent permission request.
 */
export declare function rejectedPermission(request: RequestPermissionRequest): RequestPermissionResponse;
/**
 * Whether the agent asks to leave plan mode (Claude Code's ExitPlanMode).
 * @param request Agent permission request.
 */
export declare function isPlanExit(request: RequestPermissionRequest): boolean;
/**
 * Plan markdown carried by the request's text content, or its raw `plan` input.
 * @param request Agent permission request.
 * @param sanitize Redacts known secrets.
 */
export declare function planText(request: RequestPermissionRequest, sanitize: (text: string) => string): string | undefined;
/**
 * Plan exit choices that never weaken Histoire's own permission policy.
 * "Approve" selects the agent's one-time exit (Claude Code: "manually approve edits"),
 * so later edits and commands still ask Histoire. Elevated exits (accept edits, auto,
 * bypass, clear context) would stop the agent asking, so they are never offered.
 * @param request Agent permission request.
 */
export declare function planChoices(request: RequestPermissionRequest): PermissionChoice[];
//# sourceMappingURL=permission-options.d.ts.map