import { Context, Effect, Layer, Option } from "effect"; import { HttpClient, HttpClientRequest } from "effect/unstable/http"; import { CloudflareArtifactsConfigMissing, CloudflareArtifactsRequestFailed } from "../domain/errors.ts"; export interface CloudflareArtifactsConfig { readonly apiToken: string; readonly baseUrl: string; } export interface CloudflareArtifactsImportParams { readonly branch: string; readonly depth: Option.Option; readonly name: string; readonly url: string; } export interface CloudflareArtifactImportResult { readonly name: string; readonly remote: string; readonly token: string; } export declare const cloudflareArtifactsConfigFromEnv: (env: Record) => CloudflareArtifactsConfig | null; export declare const isCloudflareImportableRemote: (url: string) => boolean; export declare const cloudflareImportEndpoint: ({ config, name }: { readonly config: CloudflareArtifactsConfig; readonly name: string; }) => string; export declare const cloudflareImportBody: ({ branch, depth, url }: Pick) => string; export declare const buildImportRequest: ({ branch, config, depth, name, url }: CloudflareArtifactsImportParams & { readonly config: CloudflareArtifactsConfig; }) => HttpClientRequest.HttpClientRequest; export declare const artifactRemoteWithCredentials: ({ remote, token }: { readonly remote: string; readonly token: string; }) => string; export interface CloudflareArtifactsShape { readonly importRepo: (params: CloudflareArtifactsImportParams) => Effect.Effect; } declare const CloudflareArtifacts_base: Context.ServiceClass; export declare class CloudflareArtifacts extends CloudflareArtifacts_base { } export declare const CloudflareArtifactsLive: Layer.Layer; export {}; //# sourceMappingURL=cloudflare-artifacts.d.ts.map