import * as Effect from "effect/Effect"; import * as Layer from "effect/Layer"; import * as Path from "effect/Path"; import { AlchemyContext } from "../AlchemyContext.ts"; import { CloudflareEnvironment } from "./CloudflareEnvironment.ts"; /** * A standalone local-runtime layer for gateway consumers OUTSIDE the * provider stack (e.g. capability `*Local` layers running in an Action, * whose ambient context has no workerd `Runtime`). Configured identically * to the providers' shared runtime — same `.alchemy/local` storage * directory — so it reads and writes the same simulator data. */ export declare const localGatewayRuntime: Layer.Layer; /** Sanitize an id into a workerd instance-name-safe suffix. */ export declare const gatewayName: (prefix: string, id: string) => string; /** * Build a client whose every member resolves the resource id first and then * delegates: `dev:` ids to the (memoized) native-over-gateway client, real * ids to the HTTP client. Function members dispatch per call; Effect-valued * members (`raw`) dispatch on evaluation. Used by the `*Local` capability * scaffolding (KV, R2) where the id is a deferred accessor resolved at * apply time. */ export declare const dispatchByMode: (resourceId: Effect.Effect, httpClient: Client, makeNative: (id: string) => Client) => Client; //# sourceMappingURL=LocalGateway.d.ts.map