/**
 * Type guard to check if a response has the necessary methods for SSE
 */
export function isSseClient(response) {
    return (typeof response === "object" &&
        response !== null &&
        "write" in response &&
        typeof response.write === "function" &&
        "end" in response &&
        typeof response.end === "function" &&
        "writable" in response);
}
//# sourceMappingURL=interfaces.js.map