UNPKG

lambda-live-debugger

Version:

Debug Lambda functions locally like it is running in the cloud

19 lines (18 loc) 722 B
import { EventStreamCodec } from "@smithy/eventstream-codec"; import { Encoder, Message } from "@smithy/types"; /** * @internal */ export type UnmarshalledStreamOptions<T> = { eventStreamCodec: EventStreamCodec; deserializer: (input: Record<string, Message>) => Promise<T>; toUtf8: Encoder; }; /** * @internal */ export declare function getUnmarshalledStream<T extends Record<string, any>>(source: AsyncIterable<Uint8Array>, options: UnmarshalledStreamOptions<T>): AsyncIterable<T>; /** * @internal */ export declare function getMessageUnmarshaller<T extends Record<string, any>>(deserializer: (input: Record<string, Message>) => Promise<T>, toUtf8: Encoder): (input: Message) => Promise<T | undefined>;