/** * @module status-helper * * Pure status inspection helpers and pending `.ib.*.md` comment metadata detection. */ import { IbGibSpaceAny } from '../../../witness/space/space-base-v1.mjs'; import { MetaspaceService } from '../../../witness/space/metaspace/metaspace-types.mjs'; import { B2tFSItemIbGib_V1 } from '../item/item-types.mjs'; import { B2tFSGalaxyIbGib_V1 } from '../b2tfs-galaxy/b2tfs-galaxy-types.mjs'; import { PendingCommentInfo, VcsStatusItem } from './status-types.mjs'; /** * Returns true if filename is a `.ib.*.md` comment metadata file. */ export declare function isCommentMetadataFilename(filename: string): boolean; /** * Extracts the inner topic / filename from `.ib..md`. */ export declare function extractCommentTopicName(filename: string): string; /** * Pure helper to walk the branch graph items. */ export declare function walkBranchGraph({ item, space, metaspace, currentRelPath, outMap, }: { item: B2tFSItemIbGib_V1; space: IbGibSpaceAny; metaspace?: MetaspaceService; currentRelPath: string; outMap: Map; }): Promise; /** * Opts for {@link getRepoStatus} */ export interface GetRepoStatusOpts { galaxyIbGib?: B2tFSGalaxyIbGib_V1; workspaceSpace?: any; localSpace?: any; activeBranchSpace?: any; metaspace?: any; b2tfsGalaxyRoot?: string; targetDir?: string; vcsPath?: string; vcsFolderName?: string; filterFilePatterns?: string[]; } /** * Result for {@link getRepoStatus} */ export interface RepoStatusResult { branchName: string; activeWorktreeDir: string; staged: VcsStatusItem[]; modified: VcsStatusItem[]; deleted: VcsStatusItem[]; untracked: VcsStatusItem[]; pendingComments: PendingCommentInfo[]; } /** * Computes complete repository status, including staged, modified, deleted, * untracked, and mapped pending `.ib.*.md` comment files via * WorkspaceProjectionSpace. * * @see {@link GetRepoStatusOpts} * @see {@link RepoStatusResult} */ export declare function getRepoStatus({ galaxyIbGib, workspaceSpace, localSpace, activeBranchSpace: givenActiveBranchSpace, metaspace, b2tfsGalaxyRoot, targetDir, vcsFolderName, filterFilePatterns, }: GetRepoStatusOpts): Promise; //# sourceMappingURL=status-helpers.d.mts.map