import type { CompletionResult, IdeEnvironmentAdapter, ReplaceRange } from "../types.js"; /** * Completions for an import source — an `imports:` map entry on a module doc * (either the scalar shorthand `Alias: ` or the `source:` under the * object form). * * Branches by prefix shape: * "" → relative dirs under the manifest dir, plus `./` / `../` seeds. * "./..", "../", "/..." → subdirs of the typed path (any subdir; existing manifest gets a hint). * "", "oci://…" → hub ref autocomplete (fuzzy substring over registered refs). * "@" → version list for that ref. * "http(s)://", "file://" → no suggestions (opaque URLs the author types verbatim). * * `oci://` is deliberately NOT opaque: without an `@` it routes to the ref * search below, whose query is the whole typed prefix — so the hub fuzzy-matches * `oci://ghcr.io/aws/telo-s3` as readily as a bare `s3`. * * `replaceRange` is forwarded onto every result so the host replaces the whole * value, not just the trailing word (Monaco / VSCode word boundaries don't * cross `/` or `@`). */ export declare function importSourceCompletions(prefix: string, replaceRange: ReplaceRange, adapter: IdeEnvironmentAdapter | undefined): Promise; //# sourceMappingURL=import-source.d.ts.map