export interface RuntimeDaemonMetadata {
    pid: number;
    port: number;
    baseUrl: string;
    startedAt: string;
    launchMode?: string;
    callerSurface?: string;
    packagingSourceCategory?: string;
    binaryPath?: string | null;
    binarySha256?: string | null;
    runtimeVersion?: string | null;
    targetTriple?: string | null;
    metadataPath?: string | null;
}
export interface RuntimeIdentity {
    launchMode: string;
    callerSurface: string;
    packagingSourceCategory: string;
    binaryPath: string;
    binarySha256: string;
    runtimeVersion: string;
    targetTriple: string;
    startedAt: string;
    metadataPath: string;
}
export interface RuntimeReadiness {
    label: string;
    tone: string;
    detail: string;
    nextCommand: string | null;
}
export interface RuntimeDecisionAction {
    action: string;
    command: string | null;
    reason: string;
    priority: "critical" | "high" | "normal" | "low";
}
export interface RuntimeDecisionRecovery {
    kind: "blocked" | "failed";
    reason: string;
    fixCommand: string | null;
    retryCommand: string | null;
}
export interface RuntimeDecision {
    currentStepId: "prepare" | "generate_packets" | "execute_packet" | "validate" | "checkpoint" | "handoff" | "idle";
    currentStepLabel: string;
    currentStepStatus: "pending" | "running" | "success" | "failed";
    nextCommand: string | null;
    readinessLabel: string;
    readinessTone: "ready" | "blocked" | "failed";
    readinessDetail: string;
    nextAction: RuntimeDecisionAction | null;
    recovery: RuntimeDecisionRecovery | null;
    decisionSource: string;
    updatedAt?: string;
}
export interface RuntimeExecutionArtifacts {
    [key: string]: string[];
}
export interface RuntimeExecutionEvent {
    eventId: number | null;
    revision: number;
    operationId: string | null;
    eventType: string;
    lifecycle: "idle" | "packet_created" | "queued" | "running" | "blocked" | "failed" | "completed";
    task: string | null;
    sourceCommand: string | null;
    reason: string | null;
    nextCommand: string | null;
    blockedBy: string[];
    artifacts: RuntimeExecutionArtifacts;
    actor: string;
    recordedAt: string;
}
export interface RuntimeDerivedOutputStatus {
    outputName: string;
    path: string;
    freshness: string;
    sourceRevision: number | null;
    generatedAt: string | null;
    invalidatedAt: string | null;
    lastError: string | null;
}
export interface RuntimeSnapshot {
    targetRoot: string;
    revision: number;
    operationId: string | null;
    task: string | null;
    sourceCommand: string | null;
    lifecycle: "idle" | "packet_created" | "queued" | "running" | "blocked" | "failed" | "completed";
    reason: string | null;
    nextCommand: string | null;
    blockedBy: string[];
    artifacts: RuntimeExecutionArtifacts;
    lastUpdatedAt: string | null;
    lastEvent: RuntimeExecutionEvent | null;
    readiness: RuntimeReadiness;
    decision?: RuntimeDecision | null;
    derivedFreshness: RuntimeDerivedOutputStatus[];
}
export interface RuntimeEventList {
    targetRoot: string;
    latestRevision: number;
    events: RuntimeExecutionEvent[];
}
export interface OpenTargetRequest {
    targetRoot: string;
    rootLabel?: string;
    projectType?: string;
    profileName?: string;
}
export interface TransitionExecutionStateRequest {
    targetRoot: string;
    actor?: string;
    triggerCommand?: string;
    eventType: string;
    lifecycle: RuntimeSnapshot["lifecycle"];
    task?: string | null;
    sourceCommand?: string | null;
    reason?: string | null;
    nextCommand?: string | null;
    blockedBy?: string[];
    artifacts?: RuntimeExecutionArtifacts;
    operationId?: string | null;
    reuseOperation?: boolean;
    clearTask?: boolean;
    decision?: RuntimeDecision | null;
    invalidateOutputs?: string[];
    materializeOutputs?: string[];
}
export interface MaterializeDerivedOutputsRequest {
    targetRoot: string;
    outputs: string[];
}
export interface PersistDerivedOutputRequest {
    targetRoot: string;
    outputName: string;
    payload: unknown;
    sourceRevision?: number | null;
}
export interface RefreshRuntimeDerivedOutputsRequest {
    targetRoot: string;
}
export interface RuntimeProof {
    identity: RuntimeIdentity;
    snapshot: RuntimeSnapshot;
    derivedFreshness: RuntimeDerivedOutputStatus[];
}
export interface RepoGraphCompatibilityArtifacts {
    repoMap?: string | null;
    symbolIndex?: string | null;
    dependencyGraph?: string | null;
    impactMap?: string | null;
    decisionGraph?: string | null;
    historyGraph?: string | null;
    reviewGraph?: string | null;
}
export interface RepoGraphStatus {
    targetRoot: string;
    ready: boolean;
    status: string;
    freshness: string;
    graphRevision: number | null;
    sourceRevision: number | null;
    sourceRuntimeRevision: number | null;
    runtimeRevisionDrift: number;
    stale: boolean;
    generatedAt: string | null;
    sourceKind: string | null;
    sourceDigest: string | null;
    graphAuthorityPath: string;
    graphAuthorityKind: string;
    nodeCount: number;
    edgeCount: number;
    moduleCount: number;
    symbolCount: number;
    aliasAuthorityKind: string;
    aliasCount: number;
    aliasAmbiguityCount: number;
    explicitAliasSourcePath: string;
    explicitAliasSourceAvailable: boolean;
    artifactPath: string | null;
    compatibilityHash: string | null;
    compatibilityExportReady: boolean;
    compatibilityInSync: boolean;
    compatibilityArtifacts: RepoGraphCompatibilityArtifacts | null;
}
export interface RepoGraphSnapshot<T = unknown> {
    status: RepoGraphStatus;
    graph?: T | null;
    nodes?: RepoGraphNode[];
    edges?: RepoGraphEdge[];
    modules?: RepoGraphModule[];
}
export interface RepoGraphNode {
    nodeId: string;
    nodeKind: string;
    path: string | null;
    moduleId: string | null;
    symbol: string | null;
    displayLabel: string;
    language: string | null;
    attributes: unknown;
}
export interface RepoGraphEdge {
    edgeId: string;
    fromNodeId: string;
    toNodeId: string;
    edgeKind: string;
    weight: number | null;
    evidence: unknown;
}
export interface RepoGraphModule {
    moduleId: string;
    displayLabel: string;
    summary: string | null;
    attributes: unknown;
}
export interface RepoGraphNodeResult {
    status: RepoGraphStatus;
    queryResolution: RepoGraphQueryResolution | null;
    node: RepoGraphNode | null;
    matches: RepoGraphNode[];
    incoming: RepoGraphEdge[];
    outgoing: RepoGraphEdge[];
}
export interface RepoGraphQueryResolution {
    queriedValue: string;
    resolvedNodeId: string | null;
    resolvedModuleId: string | null;
    resolution: string;
    score: number;
    candidates: string[];
    reasons: string[];
}
export interface RuntimePackSelectionStatus {
    targetRoot: string;
    selectedPackId: string | null;
    selectedPackSource: string | null;
    updatedAt: string | null;
}
export interface SetRuntimePackSelectionRequest {
    targetRoot: string;
    packId: string;
    selectionSource?: string | null;
    triggerCommand?: string | null;
    actor?: string | null;
}
export interface ClearRuntimePackSelectionRequest {
    targetRoot: string;
    triggerCommand?: string | null;
    actor?: string | null;
}
export interface PersistRuntimeRepoGraphRequest {
    targetRoot: string;
    sourceKind: string;
    summary?: string | null;
    sourceRevision?: number | null;
    graph?: unknown;
    artifactPath?: string | null;
    compatibilityHash?: string | null;
    compatibilityArtifacts: RepoGraphCompatibilityArtifacts;
    nodes: RepoGraphNode[];
    edges: RepoGraphEdge[];
    modules: RepoGraphModule[];
}
export declare function openRuntimeTarget(request: OpenTargetRequest): Promise<RuntimeSnapshot>;
export declare function getRuntimeSnapshot(targetRoot: string): Promise<RuntimeSnapshot>;
export declare function listRuntimeExecutionEvents(targetRoot: string, afterRevision?: number): Promise<RuntimeEventList>;
export declare function transitionRuntimeExecutionState(request: TransitionExecutionStateRequest): Promise<RuntimeSnapshot>;
export declare function materializeRuntimeDerivedOutputs(request: MaterializeDerivedOutputsRequest): Promise<RuntimeSnapshot>;
export declare function getRuntimeIdentity(): Promise<RuntimeIdentity>;
export declare function persistRuntimeDerivedOutput(request: PersistDerivedOutputRequest): Promise<RuntimeSnapshot>;
export declare function refreshRuntimeDerivedOutputs(request: RefreshRuntimeDerivedOutputsRequest): Promise<RuntimeSnapshot>;
export declare function persistRuntimeRepoGraph<T = unknown>(request: PersistRuntimeRepoGraphRequest): Promise<RepoGraphSnapshot<T>>;
export declare function getRuntimeRepoGraph<T = unknown>(targetRoot: string): Promise<RepoGraphSnapshot<T>>;
export declare function getRuntimeRepoGraphStatus(targetRoot: string): Promise<RepoGraphStatus>;
export declare function queryRuntimeRepoGraph(targetRoot: string, kind: "node" | "file" | "module" | "symbol" | "neighbors" | "impact", query: {
    nodeId?: string;
    path?: string;
    moduleId?: string;
    symbol?: string;
}): Promise<RepoGraphNodeResult>;
export declare function getRuntimePackSelectionStatus(targetRoot: string): Promise<RuntimePackSelectionStatus>;
export declare function setRuntimePackSelection(request: SetRuntimePackSelectionRequest): Promise<RuntimeSnapshot>;
export declare function clearRuntimePackSelection(request: ClearRuntimePackSelectionRequest): Promise<RuntimeSnapshot>;
export declare function ensureRuntimeDaemon(): Promise<RuntimeDaemonMetadata>;
//# sourceMappingURL=client.d.ts.map