import { aws } from "./client.js"; import { Resource } from "../resource/index.js"; import { event } from "../event/index.js"; import { EventBridgeEvent, EventBridgeHandler, Context } from "aws-lambda"; export declare namespace bus { type Name = Extract["name"]; function subscriber(_events: Events | Events[], cb: (input: { [K in Events["type"]]: Extract["$payload"]; }[Events["type"]], raw: EventBridgeEvent, context: Context) => Promise): EventBridgeHandler; /** @deprecated * use bus.subscriber instead * */ const handler: typeof subscriber; function publish(name: string | { name: string; }, def: Definition | string, properties: Definition["$input"], options?: { metadata?: Definition["$metadata"]; aws?: aws.Options; }): Promise; class PublishError extends Error { readonly response: Response; constructor(response: Response); } }