import { z } from 'zod'; /** * This notification can be sent by either side to indicate that it is cancelling a previously-issued request. * * The request SHOULD still be in-flight, but due to communication latency, it is always possible that this notification MAY arrive after the request has already finished. * * This notification indicates that the result will be unused, so any associated processing SHOULD cease. * * A client MUST NOT attempt to cancel its `initialize` request. */ export declare const cancelledNotificationSchema: z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; } & { method: z.ZodLiteral<"notifications/cancelled">; params: z.ZodObject<{ /** * The ID of the request to cancel. * * This MUST correspond to the ID of a request previously issued in the same direction. */ requestId: z.ZodUnion<[z.ZodString, z.ZodNumber]>; /** * An optional string describing the reason for the cancellation. This MAY be logged or presented to the user. */ reason: z.ZodOptional; }, "strip", z.ZodTypeAny, { requestId: string | number; reason?: string | undefined; }, { requestId: string | number; reason?: string | undefined; }>; }, "strip", z.ZodTypeAny, { params: { requestId: string | number; reason?: string | undefined; }; method: "notifications/cancelled"; jsonrpc: "2.0"; }, { params: { requestId: string | number; reason?: string | undefined; }; method: "notifications/cancelled"; jsonrpc: "2.0"; }>; //# sourceMappingURL=cancelled-notification.d.ts.map