/** * @octomil/browser — Model reference parser * * Parses model references into structured descriptors so route metadata can * record what kind of reference the caller supplied. The actual resolution * happens server-side; this module only classifies the reference. * * Supported ref kinds: * - `@app//` → kind "app" * - `@capability/` → kind "capability" * - `deploy_` → kind "deployment" * - `exp/` or `exp_/` → kind "experiment" * - anything else → kind "model" (plain model id) */ export type ModelRefKind = "model" | "app" | "capability" | "deployment" | "experiment" | "alias" | "default" | "unknown"; export interface ModelRef { raw: string; kind: ModelRefKind; /** For model refs: the model slug (same as raw) */ modelSlug?: string; /** For app refs: the app slug */ appSlug?: string; /** For app or capability refs: the capability */ capability?: string; /** For deployment refs: the deployment id */ deploymentId?: string; /** For experiment refs: the experiment id */ experimentId?: string; /** For experiment refs: the variant id */ variantId?: string; } /** * Parse a model reference string into a structured descriptor. * * This is a pure function with no side effects — safe for tree-shaking. */ export declare function parseModelRef(ref: string): ModelRef; //# sourceMappingURL=model-ref.d.ts.map