import type { ResourceLike } from "./Resource.ts"; export declare const isRef: (s: any) => s is Ref; export declare const getRefMetadata: (ref: Ref) => RefMetadata; export interface Ref { /** @internal phantom */ Ref: R; } export interface RefMetadata { id: R["LogicalId"]; stack?: string; stage?: string; /** * The resource type of the ref's target (e.g. * `"Cloudflare.KV.Namespace"`). Known statically — `MyResource.ref` * carries its own type — so duck-typing classifiers (Worker env * bindings, capability helpers) that read `.Type` can identify a ref * exactly like a locally-declared resource. */ type?: string; } export declare const ref: (id: string, { stack, stage, }?: { stack?: string; stage?: string; }, type?: string) => Ref; //# sourceMappingURL=Ref.d.ts.map