import type { EventStore as FoundationEventStore } from "../../foundation/event-store/storage.ts"; import type { Observation, Problem, RepositoryBlockedObservation, ProjectReadyObservation } from "../../foundation/report/types.ts"; export interface Diagnostic { code: string; level: string; message: string; remediation: string; path?: string; } export interface ProjectConfig { version: 1 | 2; primaryRepository: string; primaryBranch: string; preferredLanguage?: string; } export interface IdeaPaths { ideaPath: string; statusPath: string; eventsPath: string; ledgerPath: string; outerPath: string; innerPath: string; idealPath: string; deploymentDocumentPath: string; implementationDocumentPath: string; ideaDocumentPath: string; } export interface EventOptions { objectIdLength: number; legacy?: boolean; } export type EventStore = FoundationEventStore; export interface SnapshotEntry { type: string; mode: string; object: string; size: number | null; name: string; } export interface FileMetadata { isDirectory(): boolean; isFile(): boolean; isSymbolicLink(): boolean; } export interface DirectoryEntry { name: string; } export interface BusinessFileSystem { lstat(path: string): Promise; readFile(path: string): Promise; readdir(path: string): Promise; readdir(path: string, options: { withFileTypes: true; }): Promise; snapshotEntry?(path: string): SnapshotEntry | null | undefined; snapshotEntries?(path: string): SnapshotEntry[]; snapshotFile?(path: string): Promise; } export interface SnapshotBusinessFileSystem extends BusinessFileSystem { snapshotEntry(path: string): SnapshotEntry | null | undefined; snapshotEntries(path: string): SnapshotEntry[]; snapshotFile(path: string): Promise; } export type GitSnapshotFileSystem = ReturnType; export declare function asBusinessFileSystem(filesystem: GitSnapshotFileSystem): BusinessFileSystem; export declare function requireSnapshotFileSystem(filesystem: BusinessFileSystem): SnapshotBusinessFileSystem; export interface RepositoryChanges { conflicted: { path: string; kind?: string; originalPath?: string; }[]; staged: { path: string; kind?: string; originalPath?: string; }[]; unstaged: { path: string; kind?: string; originalPath?: string; }[]; untracked: { path: string; kind?: string; originalPath?: string; }[]; } export interface RepositoryBranch { branch: string | null; remote: string | null; repository: string | null; upstreamBranch: string | null; } export interface RepositoryState { branch: RepositoryBranch; changes: RepositoryChanges; head: string | null; } export type { Problem }; export type ProjectObservation = Observation; export interface ReadyObservation { config: ProjectConfig; contentLanguage: string; layout: import("./idea-layout.ts").IdeaLayout; observation: ProjectReadyObservation; outputLanguage: string; outputLanguageOverride?: string; findings: { instruction: string; }[]; projectReady: true; schemas?: import("../../foundation/schema-capability/index.ts").ProjectSchemaReadiness; } export interface UnreadyObservation { config: ProjectConfig | null; contentLanguage: string; findings: { instruction: string; }[]; layout: import("./idea-layout.ts").IdeaLayout | null; observation: ProjectObservation; outputLanguage: string; outputLanguageOverride?: string; projectReady: false; schemas?: import("../../foundation/schema-capability/index.ts").ProjectSchemaReadiness; } export type SnapshotObservation = ReadyObservation | UnreadyObservation; export type RepositoryReadiness = { branch?: RepositoryBranch; changes?: RepositoryChanges; head?: string | null; observation: RepositoryBlockedObservation; primary?: string; instructions: string; ready: false; } | { branch: RepositoryBranch; changes?: RepositoryChanges; head: string; observation: ProjectReadyObservation; primary?: string; ready: true; }; /** @pure */ export declare function repositoryProblem(observation: ProjectReadyObservation, problems: Problem[]): RepositoryBlockedObservation; export type CommandRuntime = ReturnType; /** @pure */ export declare function errorMessage(value: unknown): string; export declare function traceBusinessAsync(name: string, attributes: Record, operation: () => Promise, finish?: (result: Result) => Record): Promise; //# sourceMappingURL=business-types.d.ts.map