export type WorkspaceRange = { specifier: string; resolvedVersion?: string; }; export declare function isWorkspaceSpecifier(s: string): boolean; export declare function isPendingSpecifier(s: string): boolean; export declare function isWorkspaceWildcard(s: string): boolean; export declare function isWorkspaceConcrete(s: string): boolean; export declare function parse(rawSpecifier: string, resolvedVersion?: string): WorkspaceRange; export declare function isCanonical(value: unknown): value is WorkspaceRange; export declare function stringifyForWorkspaceProtocol(range: WorkspaceRange): string; export declare function stringifyForVersionOnly(range: WorkspaceRange): string | undefined; export declare function stringifyForBunText(range: WorkspaceRange): string; export declare function bunTextWouldCollapse(specifier: string): boolean; export declare function isWorkspaceEdge(edge: { attrs?: { workspace?: boolean; range?: string; workspaceRange?: WorkspaceRange; }; }): boolean; export declare function shouldEmitWorkspaceResolved(range: WorkspaceRange | undefined): boolean; export declare function workspaceRangeOfEdge(edge: { attrs?: { range?: string; workspace?: boolean; workspaceRange?: WorkspaceRange; }; }, dst: { workspacePath?: string; version?: string; }): WorkspaceRange | undefined;