import type { MemoryStore } from './memory/store.js'; import type { AgentConfig, AgentIssueState, BacklogCandidate, DependencyEdge, ScopeExpansion } from './types.js'; import { type GitHubIssueDetail, type ListIssuesResult } from '../utils/github.js'; import { type FeatureState } from './tools/feature-state.js'; import { loadContext } from '../context/index.js'; export interface RankedBacklog { queue: BacklogCandidate[]; actionable: BacklogCandidate[]; blocked: BacklogCandidate[]; expansions: ScopeExpansion[]; errors: string[]; } export interface SchedulerRunCache { listed?: ListIssuesResult; listedUnfiltered?: ListIssuesResult; issueDetails: Map; featureStates: Map; persistedContext?: Awaited> | null; } export declare function createSchedulerRunCache(): SchedulerRunCache; export declare function invalidateSchedulerRunCache(cache: SchedulerRunCache, issueNumbers?: number[]): void; export declare function extractDependencyHints(body: string, backlogIssues?: Array<{ number: number; title: string; }>, currentIssueNumber?: number): number[]; export declare function deriveFeatureNameFromTitle(title: string): string; export declare function dedupeEdges(edges: DependencyEdge[]): DependencyEdge[]; export declare function buildRankedBacklog(config: AgentConfig, store: MemoryStore, cache?: SchedulerRunCache): Promise; export declare function toIssueStates(queue: BacklogCandidate[]): AgentIssueState[];