import type { ResolvedMaintainerDeliveryPolicyV1 } from "./maintainer-delivery-policy-resolver.js";
import type { TaskEntity } from "./types.js";
export { MAINTAINER_DELIVERY_PROFILE_METADATA_KEY, REQUIRES_PHASE_BRANCH_METADATA_KEY } from "./maintainer-delivery-metadata-keys.js";
/** Compact resolver output for agent readouts (no explain chain, no network). */
export type MaintainerDeliveryResolvedPolicyCompactV1 = {
    schemaVersion: 1;
    profileName: string;
    reviewMode: string;
    evidenceMode: string;
    prProvider: string;
    mergeStrategy: string;
    phaseToMainMode: string;
    requiresPhaseBranch: boolean;
    phaseIntegrationBranch: string | null;
    taskBranchExample: string | null;
    mergeTargetPattern: string;
    mergeTargetBranch: string | null;
    maintainerDeliveryEnforcementMode: string;
    deliveryEvidenceEnforcementMode: string;
    /** Resolver warning codes only — messages stay in logs / separate tooling. */
    warningCodes?: string[];
};
export type MaintainerDeliveryHintsV1 = {
    schemaVersion: 1;
    playbookPath: string;
    playbookCursorRulePath: string;
    machinePlaybooksPath: string;
    /** Suggested Git integration branch when phase key is known (e.g. `release/phase-75`). */
    phaseIntegrationBranch: string | null;
    reminder: string;
    inProgressTasks: Array<{
        id: string;
        title: string;
        maintainerDeliveryProfile: string | null;
        requiresPhaseBranch: boolean;
    }>;
    /** From `suggestedNext` task metadata when present. */
    suggestedNextMaintainerDeliveryProfile: string | null;
    suggestedNextRequiresPhaseBranch: boolean;
    /**
     * When `buildMaintainerDeliveryHints` is called with `effectiveConfig`, compact resolved policy
     * for the suggested-next task (if any).
     */
    resolvedPolicySuggestedNext?: MaintainerDeliveryResolvedPolicyCompactV1 | null;
    /**
     * When `effectiveConfig` is passed, one entry per in-progress execution task (same order as
     * `inProgressTasks`).
     */
    resolvedPolicyInProgress?: Array<{
        id: string;
        title: string;
        resolvedPolicy: MaintainerDeliveryResolvedPolicyCompactV1;
    }>;
};
export declare function toCompactMaintainerDeliveryPolicy(resolved: ResolvedMaintainerDeliveryPolicyV1, warnings?: readonly {
    code: string;
}[]): MaintainerDeliveryResolvedPolicyCompactV1;
/**
 * Machine-readable hints for GitHub maintainer delivery (phase branch + task branch + playbook).
 * Safe on every read — no git subprocess.
 */
export declare function buildMaintainerDeliveryHints(input: {
    tasks: TaskEntity[];
    canonicalPhaseKey: string | null;
    suggestedNext: {
        id: string;
    } | null;
    /** When set, attaches compact `resolveMaintainerDeliveryPolicy` output for queue-relevant tasks. */
    effectiveConfig?: Record<string, unknown> | undefined;
}): MaintainerDeliveryHintsV1;
