import type { AgentExecution } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/api_pb";
import type { ExecutionArtifact } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/artifact_pb";
/**
 * Canonical filename a Plan-mode execution publishes its plan under. Kept in
 * sync with the runner's `publishPlanArtifact` (shared/plan-artifact.ts).
 */
export declare const PLAN_ARTIFACT_NAME = "plan.md";
/**
 * Returns `true` when an artifact is the published plan: a FILE artifact named
 * `plan.md`.
 *
 * Detection is by convention — the same lightweight, content-free approach used
 * for skill packages ({@link isSkillPackage}) — so the UI never needs an extra
 * RPC to know a plan exists. The plan's text is fetched on demand via
 * {@link useArtifactContent} only when the user expands the Plan card.
 */
export declare function isPlanArtifact(artifact: ExecutionArtifact): boolean;
/**
 * Finds the plan artifact on a completed execution, or `undefined` when none
 * was published (older executions, or a plan that failed to upload).
 *
 * Returns the latest `plan.md` if more than one is present — the runner
 * replaces rather than appends, so this is defensive.
 */
export declare function findPlanArtifact(execution: AgentExecution | null | undefined): ExecutionArtifact | undefined;
//# sourceMappingURL=detect-plan-artifact.d.ts.map