import type { None, Some } from "@effect-ts/core/Option"; import type { ComputeFlat, UnionToIntersection } from "@effect-ts/core/Utils"; import type * as MO from "./_schema.js"; type AdaptSchema = { [K in Key]: Props[K]; }; export declare const adaptRes: (properties: Props) => (keys: readonly Key[]) => MO.SchemaProperties<{ items: MO.Property extends infer T extends MO.PropertyRecord ? { [k in keyof T]: AdaptSchema[k] extends MO.AnyProperty ? AdaptSchema[k]["_optional"] extends "optional" ? { readonly [h in k]?: MO.ParsedShapeOf[k]["_schema"]> | undefined; } : { readonly [h_1 in k]: MO.ParsedShapeOf[k]["_schema"]>; } : never; } : never)[Key]>>[], readonly ComputeFlat extends infer T extends MO.PropertyRecord ? { [k in keyof T]: AdaptSchema[k] extends MO.AnyProperty ? AdaptSchema[k]["_optional"] extends "optional" ? { readonly [h in k]?: MO.ParsedShapeOf[k]["_schema"]> | undefined; } : { readonly [h_1 in k]: MO.ParsedShapeOf[k]["_schema"]>; } : never; } : never)[Key]>>[], readonly ComputeFlat extends infer T_1 extends MO.PropertyRecord ? { [k_1 in keyof T_1]: AdaptSchema[k_1] extends MO.AnyProperty ? AdaptSchema[k_1]["_optional"] extends "optional" ? { readonly [h_2 in AdaptSchema[k_1]["_as"] extends import("@fp-ts/data/Option").Some ? AdaptSchema[k_1]["_as"]["value"] : k_1]?: MO.EncodedOf[k_1]["_schema"]> | undefined; } : { readonly [h_3 in AdaptSchema[k_1]["_as"] extends import("@fp-ts/data/Option").Some ? AdaptSchema[k_1]["_as"]["value"] : k_1]: MO.EncodedOf[k_1]["_schema"]>; } : never; } : never)[Key]>>[], { self: { props: AdaptSchema; }; }>, "required", import("@fp-ts/data/Option").None, import("@fp-ts/data/Option").None>; count: MO.Property>, "optional", import("@fp-ts/data/Option").None, import("@fp-ts/data/Option").None>; }>; export type Adapted = MO.SchemaProperties<{ items: MO.Property]: AdaptSchema[k] extends MO.AnyProperty ? AdaptSchema[k]["_optional"] extends "optional" ? { readonly [h in k]?: MO.ParsedShapeOf[k]["_schema"]> | undefined; } : { readonly [h in k]: MO.ParsedShapeOf[k]["_schema"]>; } : never; }[Key]>>[], readonly ComputeFlat]: AdaptSchema[k] extends MO.AnyProperty ? AdaptSchema[k]["_optional"] extends "optional" ? { readonly [h in k]?: MO.ParsedShapeOf[k]["_schema"]> | undefined; } : { readonly [h in k]: MO.ParsedShapeOf[k]["_schema"]>; } : never; }[Key]>>[], readonly ComputeFlat]: AdaptSchema[k] extends MO.AnyProperty ? AdaptSchema[k]["_optional"] extends "optional" ? { readonly [h in AdaptSchema[k]["_as"] extends Some ? AdaptSchema[k]["_as"]["value"] : k]?: MO.EncodedOf[k]["_schema"]> | undefined; } : { readonly [h in AdaptSchema[k]["_as"] extends Some ? AdaptSchema[k]["_as"]["value"] : k]: MO.EncodedOf[k]["_schema"]>; } : never; }[Key]>>[], {}>, "required", None, None>; }>; export {}; //# sourceMappingURL=adapt.d.ts.map