/** * Resource scoping for shared development projects. * * Pub/Sub delivers each message to exactly one subscriber of a subscription. When several * developers point at the same dev project and the same subscription, they silently consume each * other's messages — it presents as flaky delivery and costs hours to diagnose. Prefixing gives * each developer their own subscription and topic names against the same project. * * This is a development affordance, not a production feature. Nothing here provisions resources. */ export declare class ResourcePrefixError extends Error { constructor(message: string); } /** * Applies a scoping prefix to a resource name, validating the result. * * An absent or empty prefix is a no-op, which must remain the production path. Fully-qualified * paths keep their project segment: only the resource id is prefixed. */ export declare function applyResourcePrefix(name: string, prefix: string | undefined): string; /** * Refuses to scope resources in production. * * A scoped consumer in production subscribes to a name nobody publishes to: it starts, reports * healthy, and receives nothing forever. That is a far worse failure than refusing to boot, so it * takes an explicit opt-out to allow. */ export declare function assertResourcePrefixSafe(prefix: string | undefined, allowUnsafe: boolean, nodeEnv: string | undefined): void; //# sourceMappingURL=resource-name.d.ts.map