/**
 * Source Identifier Parser
 *
 * Parses marketplace source identifiers of the form `<source>:<package>[@<version>]`.
 *
 * @implements #787
 */
import type { ParsedIdentifier } from './types.js';
/**
 * Parse a marketplace source identifier.
 *
 * Examples:
 *   "clawhub:aiwg/sdlc"              → { source: 'clawhub', packageId: 'aiwg/sdlc' }
 *   "cursor:publisher.package"       → { source: 'cursor', packageId: 'publisher.package' }
 *   "codex:some-plugin@1.2.0"        → { source: 'codex', packageId: 'some-plugin', version: '1.2.0' }
 *   "claude:user/repo#plugin"        → { source: 'claude', packageId: 'user/repo#plugin' }
 *   "git:https://github.com/foo/bar" → { source: 'git', packageId: 'https://github.com/foo/bar' }
 *
 * @throws Error if the identifier is malformed or the source is unknown
 */
export declare function parseIdentifier(identifier: string): ParsedIdentifier;
/**
 * Format a parsed identifier back to string form
 */
export declare function formatIdentifier(parsed: ParsedIdentifier): string;
//# sourceMappingURL=identifier.d.ts.map