import "@effect-ts/system/Operator"; import * as M from "@effect-ts/core/Collections/Immutable/HashMap"; import type * as HS from "@effect-ts/core/Collections/Immutable/HashSet"; import * as E from "@effect-ts/core/Either"; import * as O from "@effect-ts/core/Option"; import type { Request } from "../Request/index.js"; /** * A `CompletedRequestMap` is a universally quantified mapping from requests * of type `Request[E, A]` to results of type `Either[E, A]` for all types `E` * and `A`. The guarantee is that for any request of type `Request[E, A]`, if * there is a corresponding value in the map, that value is of type * `Either[E, A]`. This is used by the library to support data sources that * return different result types for different requests while guaranteeing that * results will be of the type requested. */ export declare class CompletedRequestMap { readonly map: M.HashMap, E.Either>; readonly _tag = "CompletedRequestMap"; constructor(map: M.HashMap, E.Either>); } export declare function concat(a: CompletedRequestMap, b: CompletedRequestMap): CompletedRequestMap; /** * Returns whether a result exists for the specified request. */ export declare function contains_(fa: CompletedRequestMap, request: any): boolean; /** * Returns whether a result exists for the specified request. * @ets_data_first contains_ */ export declare function contains(request: any): (fa: CompletedRequestMap) => boolean; /** * Appends the specified result to the completed requests map. */ export declare function insert_(fa: CompletedRequestMap, request: Request, result: E.Either): CompletedRequestMap; /** * Appends the specified result to the completed requests map. * @ets_data_first insert_ */ export declare function insert(request: Request, result: E.Either): (fa: CompletedRequestMap) => CompletedRequestMap; /** * Appends the specified optional result to the completed request map. */ export declare function insertOption_(fa: CompletedRequestMap, request: Request, result: E.Either>): CompletedRequestMap; /** * Appends the specified optional result to the completed request map. * @ets_data_first insertOption_ */ export declare function insertOption(request: Request, result: E.Either>): (fa: CompletedRequestMap) => CompletedRequestMap; /** * Retrieves the result of the specified request if it exists. */ export declare function lookup_(fa: CompletedRequestMap, request: Request): O.Option>; /** * Retrieves the result of the specified request if it exists. * @ets_data_first lookup_ */ export declare function lookup(request: Request): (fa: CompletedRequestMap) => O.Option>; /** * Collects all requests in a set. */ export declare function requests(fa: CompletedRequestMap): HS.HashSet>; /** * An empty completed requests map. */ export declare const empty: CompletedRequestMap; //# sourceMappingURL=index.d.ts.map