import { FxError } from "@microsoft/teamsfx-api"; import { Result } from "neverthrow"; import { BundledFloor, TagEntry, TemplateSource, TemplateSourcePort } from "./templateSource"; /** v4 channel prefix and naming (ADR-0006 channel isolation). */ export declare const V4_TAG_PREFIX = "templates-v4@"; export declare const ZIP_EXT = ".zip"; export interface TemplateChannelConfig { /** NDJSON tag-list URL for the v4 channel (separate from the frozen v3 `tagListURL`). */ templatesV4TagListURL: string; /** Base URL release assets are downloaded from. */ templateDownloadBaseURL: string; /** Network retry budget. */ tryLimits: number; } /** Parse the NDJSON tag list; malformed nonblank lines are hard errors. */ export declare function parseTagList(ndjson: string): TagEntry[]; /** The download URL for a v4 template package version. */ export declare function templateZipUrl(baseURL: string, version: string): string; /** The on-disk cache directory for the v4 template packages. */ export declare function cacheDir(): string; /** The cache file path for one version. */ export declare function cacheFile(version: string): string; /** Build the production port; the bundled floor is injected. */ export declare function createTemplateSourcePort(config: TemplateChannelConfig, floor: BundledFloor): TemplateSourcePort; /** Load bytes for an already-resolved source; never re-download here. */ export declare function loadResolvedPackage(source: TemplateSource, port: TemplateSourcePort): Result; //# sourceMappingURL=templateSourcePort.d.ts.map