/**
 * SpecVerse Namespace Utilities
 *
 * Handles namespace parsing, validation, and reference resolution
 * Supports implicit string-based hierarchy: @org/package or @org/domain/module
 */
export interface ParsedNamespace {
    organization?: string;
    domain: string;
    module?: string;
    full: string;
    isScoped: boolean;
}
export interface QualifiedReference {
    namespace?: string;
    type: string;
    isQualified: boolean;
}
/**
 * Parse namespace from component/deployment name
 *
 * Examples:
 * - "@acme/ecommerce" → { organization: "@acme", domain: "ecommerce", full: "@acme/ecommerce" }
 * - "@acme/ecommerce/checkout" → { organization: "@acme", domain: "ecommerce", module: "checkout" }
 * - "local-app" → { domain: "local-app", full: "local-app" }
 */
export declare function parseNamespace(namespaceName: string): ParsedNamespace;
/**
 * Parse qualified reference: "namespace.Type" or just "Type"
 *
 * Examples:
 * - "Product" → { type: "Product", isQualified: false }
 * - "@acme/ecommerce.Product" → { namespace: "@acme/ecommerce", type: "Product", isQualified: true }
 */
export declare function parseReference(reference: string): QualifiedReference;
/**
 * Validate namespace name format
 */
export declare function validateNamespace(namespaceName: string): string[];
/**
 * Check if a reference is valid for the given context
 */
export declare function validateReference(reference: string, allowedNamespaces: Set<string>): string[];
/**
 * Resolve a reference in the context of a component
 */
export declare function resolveReference(reference: string, currentNamespace: string, importedNamespaces: Map<string, string[]>): {
    resolvedNamespace: string;
    type: string;
    isLocal: boolean;
    errors: string[];
};
/**
 * Generate fully qualified name
 */
export declare function qualifiedName(namespace: string, typeName: string): string;
/**
 * Check if namespace matches a pattern (for version resolution)
 */
export declare function namespaceMatches(namespace: string, pattern: string): boolean;
//# sourceMappingURL=namespace-utils.d.ts.map