import type { Description } from "../description"; import { Step } from "."; import type { Duplo } from "../duplo"; import type { ZodSpace } from "../parser"; import type { PresetGenericResponse } from "../response"; import type { CurrentRequestObject } from "../request"; import { BuildedExtractStep } from "./builded/extract"; import { type GetPropsWithTrueValue } from "@duplojs/utils"; export interface DisabledExtractKey { method: true; } export type ExtractKey = Exclude>; export type ExtractObject = { [P in ExtractKey]?: { [x: string]: ZodSpace.ZodType; } | ZodSpace.ZodType; }; export type ExtractErrorFunction = (type: keyof ExtractObject, key: string, error: ZodSpace.ZodError) => PresetGenericResponse; export declare class ExtractStep extends Step { catchError?: ExtractErrorFunction; constructor(extractObject: GenericExtractObject, catchError?: ExtractErrorFunction | undefined, descriptions?: Description[]); build(instance: Duplo): Promise; static insertBlockName: { before: >(interpolationValues: GenericInterpolationValues) => string; after: >(interpolationValues: GenericInterpolationValues) => string; beforeLevelOne: >(interpolationValues: GenericInterpolationValues) => string; beforeTreatResultLevelOne: >(interpolationValues: GenericInterpolationValues) => string; beforeIndexingResultLevelOne: >(interpolationValues: GenericInterpolationValues) => string; afterLevelOne: >(interpolationValues: GenericInterpolationValues) => string; beforeLevelTwo: >(interpolationValues: GenericInterpolationValues) => string; beforeTreatResultLevelTwo: >(interpolationValues: GenericInterpolationValues) => string; beforeIndexingResultLevelTwo: >(interpolationValues: GenericInterpolationValues) => string; afterLevelTwo: >(interpolationValues: GenericInterpolationValues) => string; }; }