import * as t from "io-ts"; import * as r from "@pagopa/ts-commons/lib/requests"; import { Notification } from "./Notification"; import { SuccessResponse } from "./SuccessResponse"; import { ProblemJson } from "./ProblemJson"; /**************************************************************** * notify */ export type NotifyT = r.IPostApiRequestType<{ readonly body: Notification; }, "Content-Type", never, r.IResponseType<200, SuccessResponse, never> | r.IResponseType<400, ProblemJson, never> | r.IResponseType<401, undefined, never> | r.IResponseType<500, ProblemJson, never>>; export declare const notifyDefaultResponses: { 200: t.ExactC, t.PartialC<{ message: t.StringC; }>]>>; 400: t.ExactC, t.PartialC<{ type: t.Type; title: t.StringC; status: t.UnionC<[import("@pagopa/ts-commons/lib/types").Tagged, number, number, unknown>, t.LiteralC<599>]>; detail: t.StringC; instance: t.StringC; }>]>>; 401: t.UndefinedC; 500: t.ExactC, t.PartialC<{ type: t.Type; title: t.StringC; status: t.UnionC<[import("@pagopa/ts-commons/lib/types").Tagged, number, number, unknown>, t.LiteralC<599>]>; detail: t.StringC; instance: t.StringC; }>]>>; }; export type NotifyResponsesT = { 200: t.Type; 400: t.Type; 401: t.Type; 500: t.Type; }; export declare function notifyDecoder(overrideTypes?: Partial> | t.Type | undefined): r.ResponseDecoder | r.IResponseType<400, A1, never> | r.IResponseType<401, A2, never> | r.IResponseType<500, A3, never>>; export declare const notifyDefaultDecoder: () => r.ResponseDecoder | r.IResponseType<200, {} & { message?: string | undefined; }, never> | r.IResponseType<400, {} & { type?: string | undefined; title?: string | undefined; status?: 599 | (number & import("@pagopa/ts-commons/lib/numbers").IWithinRangeIntegerTag<100, 599>) | undefined; detail?: string | undefined; instance?: string | undefined; }, never> | r.IResponseType<500, {} & { type?: string | undefined; title?: string | undefined; status?: 599 | (number & import("@pagopa/ts-commons/lib/numbers").IWithinRangeIntegerTag<100, 599>) | undefined; detail?: string | undefined; instance?: string | undefined; }, never>>;