import type { NestContext } from '#adapter/core/context'; import type { Incoming } from '#adapter/core/ports/bindings'; import type { Forwarded, RequestOptions } from './forwarded.ts'; import type { ParsedQuery } from './query/index.ts'; interface UrlParts { readonly hostname: string; readonly pathname: string; readonly protocol: string; readonly search: string; route: string | undefined; } interface BagState { readonly context: NestContext; readonly options: RequestOptions; forwarded: Forwarded | undefined; headers: Record | undefined; hostname: string | undefined; hosts: Record | undefined; incoming: Incoming | undefined; ip: string | undefined; method: string | undefined; mount: string | undefined; originalUrl: string | undefined; params: Record | undefined; paramsAt: number | undefined; protocol: string | undefined; query: ParsedQuery | undefined; requestUrl: string | undefined; url: UrlParts | undefined; } declare const urlPartsOf: (state: BagState) => UrlParts; declare const searchOf: (url: string) => string; declare const forwardedOf: (state: BagState) => Forwarded; declare const incomingOf: (state: BagState) => Incoming | undefined; export { forwardedOf, incomingOf, searchOf, urlPartsOf }; export type { BagState, UrlParts }; //# sourceMappingURL=bag-state.d.ts.map