/** * @since 1.0.0 */ import * as Context from "effect/Context"; import * as Effect from "effect/Effect"; import * as Inspectable from "effect/Inspectable"; import * as Option from "effect/Option"; import type * as ParseResult from "effect/ParseResult"; import * as Schema from "effect/Schema"; import type { ParseOptions } from "effect/SchemaAST"; import type * as Stream from "effect/Stream"; import * as FileSystem from "./FileSystem.js"; import type * as Headers from "./Headers.js"; import * as UrlParams from "./UrlParams.js"; /** * @since 1.0.0 * @category type ids */ export declare const TypeId: unique symbol; /** * @since 1.0.0 * @category type ids */ export type TypeId = typeof TypeId; /** * @since 1.0.0 * @category models */ export interface HttpIncomingMessage extends Inspectable.Inspectable { readonly [TypeId]: TypeId; readonly headers: Headers.Headers; readonly remoteAddress: Option.Option; readonly json: Effect.Effect; readonly text: Effect.Effect; readonly urlParamsBody: Effect.Effect; readonly arrayBuffer: Effect.Effect; readonly stream: Stream.Stream; } /** * @since 1.0.0 * @category schema */ export declare const schemaBodyJson: (schema: Schema.Schema, options?: ParseOptions | undefined) => (self: HttpIncomingMessage) => Effect.Effect; /** * @since 1.0.0 * @category schema */ export declare const schemaBodyUrlParams: | undefined>>, R>(schema: Schema.Schema, options?: ParseOptions | undefined) => (self: HttpIncomingMessage) => Effect.Effect; /** * @since 1.0.0 * @category schema */ export declare const schemaHeaders: >, R>(schema: Schema.Schema, options?: ParseOptions | undefined) => (self: HttpIncomingMessage) => Effect.Effect; declare const MaxBodySize_base: Context.ReferenceClass>; /** * @since 1.0.0 * @category fiber refs */ export declare class MaxBodySize extends MaxBodySize_base { } /** * @since 1.0.0 * @category fiber refs */ export declare const withMaxBodySize: ((size: Option.Option) => (effect: Effect.Effect) => Effect.Effect) & ((effect: Effect.Effect, size: Option.Option) => Effect.Effect); /** * @since 1.0.0 */ export declare const inspect: (self: HttpIncomingMessage, that: object) => object; export {}; //# sourceMappingURL=HttpIncomingMessage.d.ts.map