import * as Option from "effect/Option"; import * as Schema from "effect/Schema"; export declare const RegistrySourcePatternPartsSchema: Schema.Struct<{ readonly owner: Schema.brand; readonly type: Schema.optional>; readonly name: Schema.optional>; readonly versionRange: Schema.optional>; }>; export type RegistrySourcePatternParts = Schema.Schema.Type; /** * A Registry locator with the configured source it names, when it names one. * An unqualified `@owner/...` locator names no source here: which configured * Registry it binds to is a workspace decision, made beside the settings that * hold the effective default Registry. */ export type SourceQualifiedRegistrySourcePatternParts = RegistrySourcePatternParts & { readonly sourceName: Option.Option; }; export declare const RegistrySourceRefPartsSchema: Schema.Struct<{ readonly owner: Schema.brand; readonly type: Schema.Literals; readonly name: Schema.brand; readonly versionRange: Schema.optional>; }>; export type RegistrySourceRefParts = Schema.Schema.Type; export declare const parseRegistrySourcePatternParts: (input: string) => RegistrySourcePatternParts | undefined; /** * Parse a Registry locator, keeping the configured source name it spells * (`:@owner/...`) and leaving an unqualified locator unbound. */ export declare const parseSourceQualifiedRegistrySourcePatternParts: (input: string) => SourceQualifiedRegistrySourcePatternParts | undefined; export declare const parseRegistrySourceRef: (input: string) => RegistrySourceRefParts | undefined; export declare const formatRegistrySourcePatternParts: (value: RegistrySourcePatternParts) => string; export declare const formatRegistrySourceRef: (value: RegistrySourceRefParts) => string; export declare const RegistrySourcePatternSchema: Schema.decodeTo; readonly type: Schema.optional>; readonly name: Schema.optional>; readonly versionRange: Schema.optional>; }>>, Schema.String, never, never>; export declare const RegistrySourceRefSchema: Schema.decodeTo; readonly type: Schema.Literals; readonly name: Schema.brand; readonly versionRange: Schema.optional>; }>>, Schema.String, never, never>; //# sourceMappingURL=registry-source.d.ts.map