import { n as ChangeFile } from "./schemas-CxBYcq-e.mjs"; import { T as SchemaDetail } from "./opsx-types-DXBwJP68.mjs"; //#region src/opsx-entity.d.ts type OpsxEntityStage = 'change' | 'archive'; interface OpsxEntityDiagnostic { level: 'info' | 'warning' | 'error'; message: string; path?: string; } type OpsxEntityFile = ChangeFile; type OpsxEntityArtifactFile = ChangeFile & { type: 'file'; }; interface OpsxEntityArtifact { id: string; outputPath: string; description?: string; files: OpsxEntityArtifactFile[]; } interface OpsxEntityDetail { stage: OpsxEntityStage; id: string; exists: true; schemaName?: string; files: OpsxEntityFile[]; artifacts: OpsxEntityArtifact[]; ungroupedFiles: OpsxEntityFile[]; diagnostics: OpsxEntityDiagnostic[]; } interface OpsxEntityReadOptions { schemas?: Record; schemaDiagnostics?: Record; } declare function getOpsxEntityRootRelativePath(stage: OpsxEntityStage, id: string): string; declare function getOpsxEntityMetadataPath(stage: OpsxEntityStage, id: string): string; interface ParsedEntityMetadata { schemaName?: string; diagnostics: OpsxEntityDiagnostic[]; } declare function normalizeOpsxEntityPath(path: string): string; declare function isOpsxGlobPattern(path: string): boolean; declare function opsxGlobToRegex(pattern: string): RegExp; declare function opsxPathMatchesPattern(path: string, pattern: string): boolean; declare function parseOpsxEntityMetadata(content: string | null | undefined): ParsedEntityMetadata; declare function buildOpsxEntityDetail(input: { stage: OpsxEntityStage; id: string; files: ChangeFile[]; schemas?: Record; schemaDiagnostics?: Record; }): OpsxEntityDetail; //#endregion export { OpsxEntityFile as a, buildOpsxEntityDetail as c, isOpsxGlobPattern as d, normalizeOpsxEntityPath as f, parseOpsxEntityMetadata as h, OpsxEntityDiagnostic as i, getOpsxEntityMetadataPath as l, opsxPathMatchesPattern as m, OpsxEntityArtifactFile as n, OpsxEntityReadOptions as o, opsxGlobToRegex as p, OpsxEntityDetail as r, OpsxEntityStage as s, OpsxEntityArtifact as t, getOpsxEntityRootRelativePath as u };